Skip to content

grex

Command-line tool and library for generating regular expressions

grex is a library as well as a command-line utility that is meant to simplify the often complicated and tedious task of creating regular expressions. It does so by automatically generating a single regular expression from user-provided test cases. The resulting expression is guaranteed to match the test cases which it was generated from.

terminal

https://github.com/pemistahl/grex

amd64

Installation

1. Add WakeMeOps repository

curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash

2. Install grex

sudo apt install grex

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    grex=1.4.1*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      grex=1.4.1*

Download URLs

Version SHA256 Size (KB)
1.4.1 bc431d29db06c08bd96570bb2dd5afa0dbb4d8be355b494a6e0618cac7aa0f5b 688
1.4.0 efbb3fde5c60caa9003d9efcebaa6630642a866c59e7e419dd1f6549dbe834e5 701
1.3.0 4e4cc502fc73cbdbb9215dbcd52883c8c8581a4aba39a73bcd7411a2bc38df58 663

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for grex are versionned here.

Click here to see grex ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/terminal/grex/ops2deb.yml
- name: grex
  version: 1.3.0
  homepage: https://github.com/pemistahl/grex
  summary: command-line tool and library for generating regular expressions
  description: |-
    grex is a library as well as a command-line utility that is meant to simplify
    the often complicated and tedious task of creating regular expressions. It does
    so by automatically generating a single regular expression from user-provided
    test cases. The resulting expression is guaranteed to match the test cases
    which it was generated from.
  fetch: https://github.com/pemistahl/grex/releases/download/v{{version}}/grex-v{{version}}-x86_64-unknown-linux-musl.tar.gz
  script:
    - install -m 755 grex {{src}}/usr/bin/

- name: grex
  matrix:
    versions:
      - 1.4.0
      - 1.4.1
  homepage: https://github.com/pemistahl/grex
  summary: command-line tool and library for generating regular expressions
  description: |-
    grex is a library as well as a command-line utility that is meant to simplify
    the often complicated and tedious task of creating regular expressions. It does
    so by automatically generating a single regular expression from user-provided
    test cases. The resulting expression is guaranteed to match the test cases
    which it was generated from.
  fetch: https://github.com/pemistahl/grex/releases/download/v{{version}}/grex-v{{version}}-x86_64-unknown-linux-musl.tar.gz
  install:
    - grex:/usr/bin/

The blueprint fetch keyword contains a URL template pointing to grex releases. Downloaded files are locked in a lockfile versionned here.

Click here to see grex release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/terminal/grex/ops2deb.lock.yml
- url: https://github.com/pemistahl/grex/releases/download/v1.3.0/grex-v1.3.0-x86_64-unknown-linux-musl.tar.gz
  sha256: df47f82add291905af60d20a3499f6845c65bfe452fa9d30f8c7a900f45578e8
  timestamp: 2021-12-09 19:47:05+00:00
- url: https://github.com/pemistahl/grex/releases/download/v1.4.0/grex-v1.4.0-x86_64-unknown-linux-musl.tar.gz
  sha256: a2e1d4050a520d6006127129e41a424e2375ecb090979666189b5681989d0a10
  timestamp: 2022-07-26 20:27:51+00:00
- url: https://github.com/pemistahl/grex/releases/download/v1.4.1/grex-v1.4.1-x86_64-unknown-linux-musl.tar.gz
  sha256: bc42bb1b19dffa2f67d7011c856de44fe5fb4878af7f2b676794c23ce843004b
  timestamp: 2022-10-21 14:56:02+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/grex.svg)](https://docs.wakemeops.com/packages/grex)
<a href="https://docs.wakemeops.com/packages/grex">
  <img src="https://docs.wakemeops.com/badges/grex.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/grex.svg
:target: https://docs.wakemeops.com/packages/grex