-
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
(^|x)
causes error "empty expression"
#427
Comments
Will take a look at this. It works fine with the |
Just a quick follow-up note: I'm just theorizing here, but it appears that grep just outputs all lines with |
Please note that I was just providing a minimal example. My use case is |
I am also affected by this. IIRC, I was trying to match '(^|\s)x', which GNU grep handles without issue. There may be more efficient ways to architect that expression, but I guess if ugrep is intended to be a drop-in replacement for GNU grep, it seems like it should support these types of expressions. |
This limitation of the
GNU grep is 10x slower in this case:
See also #426 |
I tried to replace my GNU grep with ugrep and found that the pattern
(^|x)
which I happen to use at times causes error "empty expression":The text was updated successfully, but these errors were encountered: