hyperscan icon indicating copy to clipboard operation
hyperscan copied to clipboard

Sub-string match in hyperscan

Open saswat108 opened this issue 1 year ago • 0 comments

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

I have a text like this: 1/1 53 f(2)/p(c)/gmail:[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.

saswat108 avatar Sep 17 '24 03:09 saswat108