ReTitle icon indicating copy to clipboard operation
ReTitle copied to clipboard

Option to turn off "| Regex Error: No pattern Match"

Open tomernahum opened this issue 3 years ago • 2 comments

I am new to regex so maybe theres another way around this, also its not super important.

Anyway youtube sometimes gives you a tab like this: "(1) Title of Video", if you have notifications from youtube. I wanted to get rid of the (1) .

So I wrote this regex replacement thing: /^([0-9]+)./‎/
(which has an empty character between // at the end) I tested it by googling stuff starting with (1)

It works but if there is no (1) then it says "| Regex Error: No pattern Match", but I do not care.

So maybe there could be a setting in the advanced features not to show this message. Up to you Or maybe there is a regex I could have written that accounts for this, if you know it feel free to comment

tomernahum avatar Dec 13 '22 09:12 tomernahum

/^(\(\d+\) )?(.*)$/‎$2/

This might work.

jathek avatar Dec 14 '22 02:12 jathek

thanks it does!

tomernahum avatar Dec 14 '22 14:12 tomernahum