- Posted by
- Just be careful because ? itself can be used as a quantifier as well. Personally, I suggest to think of quantifiers in this way: greedy * any to 0 + any to 1 ? 1 to 0 {n,m} m to n non-greedy *? 0 to any +? 1 to any ?? 0 to 1 {n,m}? n to m I believe It helps to better understand how the r...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- fleggy
Mar 11, 2023
- There are several possibilities to do that. Here are described two possibilities. There can be executed a Perl regular expression Replace all with the search expression ^ (?! <RX ) .* (?: \r\n|$ ) and use as replace string either just \r\n to just change the lines not starting with <RX to an empty l...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Mofi
Jan 31, 2023
- A Perl regular expression search with (?<! <W ) •water searches for •water and uses a negative lookbehind to verify if there is not " <W " preceding found •water for a positive match.Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Mofi
Dec 12, 2022