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-y
enable match all expressionsctrl-l
enable multiline match: ^ and $ match begin/end linectrl-s
enable span line: let . match \nctrl-i
enable insensitive matching- Press
esc
to enter pager
i
,a
to go back to the regex editorH
,L
to change buffers (if multiple files are open)- Normal pagination (
hjkl
,ctrl-f
,ctrl-b
,g
,G
) q
,ctrl-c
to 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