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

Sub-string match in hyperscan #436

Open
saswat108 opened this issue Sep 17, 2024 · 0 comments
Open

Sub-string match in hyperscan #436

saswat108 opened this issue Sep 17, 2024 · 0 comments

Comments

@saswat108
Copy link

Hello,
[This is a query and not a bug report]

I have a text like this:
1/1 53 f(2)/p(c)/gmail:login=[email protected]

And, I am trying to find a match for this pattern: "[email protected]"
But hyperscan doesn't return a match for this pattern!

However, if I modify my pattern to be searched as ".*[email protected]" then hyperscan does return a match!

Is this behavior expected?
Is it possible to set any flag in hyperscan to match the exact sub-string("[email protected]" in this case) without any regex in the pattern?

Regards.

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

1 participant