Open idan-h opened 1 month ago
Tested pr, quite simple, that adds regex support for the ignore, require, and replace functionalities.
It works by adding $regex: to the start of each string, and will else function as usual.
$regex:
Might be worth adding some example patterns, maybe to the readme or something. Not a must.
An example pattern to insert the word space between numbers: $regex:(?<=\d)\s+(?=\d) replace with space
$regex:(?<=\d)\s+(?=\d)
space
An example pattern to insert spaces between numbers: $regex:(?<=[0-9])(?=[0-9]) replace with
$regex:(?<=[0-9])(?=[0-9])
it is also possible to use group references by just typing $1, $2 etc.
Tested pr, quite simple, that adds regex support for the ignore, require, and replace functionalities.
It works by adding
$regex:
to the start of each string, and will else function as usual.Might be worth adding some example patterns, maybe to the readme or something. Not a must.
An example pattern to insert the word space between numbers:
$regex:(?<=\d)\s+(?=\d)
replace withspace
An example pattern to insert spaces between numbers:
$regex:(?<=[0-9])(?=[0-9])
replace withit is also possible to use group references by just typing $1, $2 etc.