Interactively validate regex against test data in your console
$ go get github.com/byxorna/reggi/cmd/reggi
Then, reggi some.txt files.txt to interactively test your regexp against your files.
Enter a regex to match against the currently focused buffer. Matches are highlighted.
ctrl-yenable match all expressionsctrl-lenable multiline match: ^ and $ match begin/end linectrl-senable span line: let . match \nctrl-ienable insensitive matching- Press
escto enter pager
i,ato go back to the regex editorH,Lto change buffers (if multiple files are open)- Normal pagination (
hjkl,ctrl-f,ctrl-b,g,G) q,ctrl-cto quit
$ make dev # opens a fixture
I use rubular.com constantly, and wanted to make something similar that I could keep closer at hand in the console.
- implement different color for submatches vs matches
- implement a submatch expression explorer to visualise submatches as a tree


