-
Notifications
You must be signed in to change notification settings - Fork 210
Inexplicable error -8 while matching certain pattern #23
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
Comments
If you using Because '.|\s' essentially matches to all characters, you can simply enable dotall temporarily for the dot character: |
🤨😄 |
Let me know if you are ok with this answer because we can close this bug then. |
I suspect that's more in your court - this still feels like incorrect behaviour to me, but I don't think it's my place 😊 And I'm fine with the workaround. Thanks! |
Regex101 says: https://regex101.com/r/6XKrAV/1 Writing good patterns is important, the engine has limits to help you. E.g. a bubble sort is always much slower than a quick sort, whatever a C compiler does, and this is not the fault of the compiler. |
Hi!
There is an error when matching the following pattern:
a(.|\s)*?asdf
against:
Specifically: a, followed by newline, followed by 16 spaces, followed by b, space, b, space, 35 b's, then an f.
pcregrep 'a(.|\s)*?asdf' returns:
Using pcre2 10.37_1, as installed on macOS 11.6 via Homebrew.
Am I missing something obvious? This should work, right?
The text was updated successfully, but these errors were encountered: