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

[question] Is there a way to match a question-mark literally without using regexp? #158

Open
rusty-snake opened this issue Aug 7, 2021 · 2 comments

Comments

@rusty-snake
Copy link
Contributor

Is there any way to match a question-mark literally without using regexp?

Example:

I want a exclude rule like ://example.com/foo/bar?frog_id=* where the ? is a ? and not any char. I could use /:\/\/example\.com\/foo\/bar\?frog_id=.*/, I know but come on this isn't readable. So is there a way to do something like ://example.com/foo/bar\?frog_id=* or ://example.com/foo/bar??frog_id=*?

@ChiefMikeK
Copy link

Maybe ¯\_(ツ)_/¯ try percent encoding ie.

%3F


https://en.m.wikipedia.org/wiki/Percent-encoding

@rusty-snake
Copy link
Contributor Author

Unfortunately this does not work either.

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

No branches or pull requests

3 participants