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 matchingesc
to enter pageri
,a
to go back to the regex editorH
,L
to change buffers (if multiple files are open)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.
Version | Tag | Published |
---|---|---|
v0.1.0 | 1yr ago |