-
Notifications
You must be signed in to change notification settings - Fork 197
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
pcregrep Error -46 while using simple recursive regex #24
Comments
I cannot check it without a some kind of input. Anyway, #22 might fix this. Could you check it? |
It seems to occur on any input at all:
I'm afraid I don't have the time right now to get a build working (I just installed the homebrew version). |
Hm, this pattern looks really like an unbound regex, since it recursively call itself without matching anything. Regex101 also complains: https://regex101.com/r/qqLt6Z/1 |
Ah, okay, fair enough. I was just using it as I found it Out There On The Internet and it seemed to be being presented as an accepted technique for recursively matching bracket pairs. Guess I need to keep digging. |
Hi!
This regex:
(((?>[^()]+)|(?R))*)
Causes pcregrep/pcre2grep to bail immediately with error -46:
The text was updated successfully, but these errors were encountered: