You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the good job.
I am a pythoner trying to convert my python program into C++, I found that my regulare strings with negtive lookahead or negtive lookbehind will match just like the "negtive lookahead" and "negtive lookbehind" part are not exist.
eg.
my regure string is “(?<![a-zA-Z0-9])(H2O|Covid-19|Windows)(?![a-zA-Z0-9])”
In my expection, it will match when input string is "My Computer runs Windows 12", but not "this is Windows10" or "AWindows is my program".
But, in my test, all the three are matched out the keyword "Windows", I donot know why. Is there any compile options in PCRE2 to open/close lookahead/lookbehind?
The text was updated successfully, but these errors were encountered:
But, in my test, all the three are matched out the keyword "Windows", I donot know why. Is there any compile options in PCRE2 to open/close lookahead/lookbehind?
There's no option to disable lookarounds. I suppose you must have made a mistake in your program somewhere.
But, in my test, all the three are matched out the keyword "Windows", I donot know why. Is there any compile options in PCRE2 to open/close lookahead/lookbehind?
There's no option to disable lookarounds. I suppose you must have made a mistake in your program somewhere.
Thanks for the good job.
I am a pythoner trying to convert my python program into C++, I found that my regulare strings with negtive lookahead or negtive lookbehind will match just like the "negtive lookahead" and "negtive lookbehind" part are not exist.
eg.
my regure string is “(?<![a-zA-Z0-9])(H2O|Covid-19|Windows)(?![a-zA-Z0-9])”
In my expection, it will match when input string is "My Computer runs Windows 12", but not "this is Windows10" or "AWindows is my program".
But, in my test, all the three are matched out the keyword "Windows", I donot know why. Is there any compile options in PCRE2 to open/close lookahead/lookbehind?
The text was updated successfully, but these errors were encountered: