voicenotify icon indicating copy to clipboard operation
voicenotify copied to clipboard

Added regex support

Open idan-h opened this issue 4 months ago • 0 comments

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 with space

An example pattern to insert spaces between numbers: $regex:(?<=[0-9])(?=[0-9]) replace with

it is also possible to use group references by just typing $1, $2 etc.

idan-h avatar Oct 05 '24 01:10 idan-h