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.5*

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

Download URLs

Version SHA256 Size (KB)
1.4.5 8def61e901ac3666abb880c70e3661f35737b22609ab1c4ae736c8b413d36970 847
1.4.4 1b5f254e3243943f0f1c9412871334c92f1fd63908e0c3e986e4b39c2eaac450 827
1.4.2 e9e9cc04e83bf42f2780216fd78fdc6333a028590433703c3c4149cb9acfb358 824
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 versioned 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
      - 1.4.2
      - 1.4.4
      - 1.4.5
  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 versioned 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
- url: https://github.com/pemistahl/grex/releases/download/v1.4.2/grex-v1.4.2-x86_64-unknown-linux-musl.tar.gz
  sha256: cdd6fad0a3ac5c7fbce677709ebe3101a1dbfbb4d8492ac59e61df6a693120e4
  timestamp: 2023-07-27 09:16:48+00:00
- url: https://github.com/pemistahl/grex/releases/download/v1.4.4/grex-v1.4.4-x86_64-unknown-linux-musl.tar.gz
  sha256: 52b4128e55f6d2f30f47e1f280e307c8ea23285801d609193c770bdb6893c974
  timestamp: 2023-08-24 15:17:06+00:00
- url: https://github.com/pemistahl/grex/releases/download/v1.4.5/grex-v1.4.5-x86_64-unknown-linux-musl.tar.gz
  sha256: 5bc7ec9ea47e63a9d18f58580561ff9cc9d142489630de5985218f3f4d0e3dd2
  timestamp: 2024-03-06 12:09:29+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