Regexp engine to use negative lookahead assertion #2737
-
Hello Guys, hope you're doing great today. I'm currently building a couple of things that require that I use regexp. I'm amazed to use rg in my development, however, I'm not able to use my regexp. I'm currently using a negative lookahead assertion in my regexp but it seems like RG is not able to understand this. as a general example I have the following regexp :
This regular expression will match "username-company" but will ignore occurrences where "company" is followed by any other characters. I'm currently trying to use rg as follows :
Is there any option to use my negative lookahead assertion in my regexp. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
From the README:
ripgrep uses Rust's regex crate by default. From its docs:
|
Beta Was this translation helpful? Give feedback.
From the README:
ripgrep uses Rust's regex crate by default. From its docs: