Skip to content
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.

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

How to escape special characters in regex filter? #273

Open
mkanet opened this issue Jun 1, 2020 · 1 comment
Open

How to escape special characters in regex filter? #273

mkanet opened this issue Jun 1, 2020 · 1 comment

Comments

@mkanet
Copy link

mkanet commented Jun 1, 2020

This is just a general question...

How do we search for the below string; including the pipe characters? I couldn't find any information about escaping special characters.

|USA|
|MOVIES |
Or, what if I want to search for both?

When I try something like below...
Filter = "\|USA\| .* HD|\|USA\| .* UHD|\|US\| .* HD|\|US\| .* UHD|\|UK\| .* HD|\|UK\| .* UHD"

I get the error:

invalid escape sequence: \|"

@mike-pt
Copy link

mike-pt commented Jul 31, 2023

I know you posted this LONG ago, but I bumped into it today, you have to double escape

\\|USA i.e.

Decided to post just in case others bump into this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants