ref: 347d0080b5ba0e2470a9dbc20a3e3f588fb281de rex/README.md -rw-r--r-- 1.3 KiB
347d0080Garrit Franke Add support for STDIN 6 months ago


Rex is a command line playground for regular expressions similar to playground section on ihateregex.io.


go get -u git.sr.ht/~yerinalexey/rex

Make sure to add $GOPATH/bin to your $PATH variable if not already:

export PATH="$PATH:$GOPATH/bin"


$ rex [flags] FILE

Rex reads FILE where each line is a test match (multi-line regexes are not supported). If not specified, the input is read from STDIN. Lines should be separated by line feeds (\n).

In the interface you are presented with a regex input field and a list of test data highlighted accordingly to them matching a regex.

You can switch between them using Tab or Shift+Tab. Escape exits the application and prints input regex to standard output.

List can be scrolled using Vi keys: j - down, k - up. Input field supports readline-like bindings: reference.


Send patches using git send-email to my public inbox with project prefix set to rex:

git config format.subjectPrefix 'PATCH rex'