8000 Option to turn off "| Regex Error: No pattern Match" · Issue #65 · Lazyuki/ReTitle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

8000

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tomernahum opened this issue Dec 13, 2022 · 2 comments
Open

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

tomernahum opened this issue Dec 13, 2022 · 2 comments
Labels
🐞 bug Something isn't working

Comments

@tomernahum
Copy link

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

@jathek
Copy link
jathek commented Dec 14, 2022

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

This might work.

@tomernahum
Copy link
Author

thanks it does!

@Lazyuki Lazyuki added the 🐞 bug Something isn't working label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
0