rere is a regex notepad and search tool. It helps you save patterns you use frequently, and search for ones you use infrequently.
It is very much still in development, and should be considered just an alpha MVP for now.
pip install --index-url https://test.pypi.org/simple/ reretrieve
ack $(rere vowels)
Add a pattern:
$ rere --add "[aeiou]" vowels|v
[aeiou]
Retrieve it:
$ rere v
[aeiou]
$ rere vowels
[aeiou]
Overwrite it:
$ rere --add [aeiouAEIOU] --force vowels
[aeiouAEIOU]
Remove it:
$ rere --remove vowels
[aeiouAEIOU]
Retrieve it from the web!
$ rere vowels
[aeiou]
Use it with ack to find vowels:
ack $(rere vowels)
You do not have to donate. I do not need your money. But if you like the tool and want to buy me a coffee, I will definitely appreciate it!
The patternfile format is VERY much going to change. Probably to some sensible TOML/YML/JSON thing. Once that transition happens, the idea is to allow specifying the regex flavor.
PATTERNNAME:PATTERN
β general formatting.PATTERNNAME1|PATTERNNAME2:PATTERN
β two acceptable names.PA:TTERNNAME:PATTERN
β bad pattern name.PATTERNNAME:[:]
β totally fine.PATTERNNAME::
β totally fine.PATTERNNAME:[ \t\n]
β also fine.