-
Notifications
You must be signed in to change notification settings - Fork 111
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
"Empty expression" error when using \A
inside group
#439
Comments
Indeed, |
I should add that matching a single |
Thank you for the clarification! So the non-empty expression must be inside the capture group/non-capture group with the Is this a limitation set by ugrep (perhaps for performance?) or a limitation of the regex engine ugrep uses. I tried the original regex (on Regex101) with PCRE2 and it would match successfully. |
This is to avoid confusion and problems, i.e. when For regex like |
If I put
\A
inside a capture group or non-capture group, it'll give an error:Command:
(I have a file that contains "Testword5" for this test search)
Output:
I've looked through the man page. The only thing that seems relevant is the
--empty
flag, but using it gives the same results.The text was updated successfully, but these errors were encountered: