Re: Asking the experts for a less greedy regex

2019-06-23 Thread Patrick Woolsey
On Jun 22, 2019, at 18:41, Christopher Stone wrote: > > On 06/22/2019, at 14:15, Patrick Woolsey wrote: >> Based on your description above, I expect something like this should do the >> job, or at least serve as a starting point for further experimentation :-): >> >> Search for:(( |)if

Re: Asking the experts for a less greedy regex

2019-06-22 Thread Christopher Stone
On 06/22/2019, at 14:15, Patrick Woolsey mailto:pwool...@barebones.com>> wrote: > Based on your description above, I expect something like this should do the > job, or at least serve as a starting point for further experimentation :-): > > Search for:(( |)if \(.+?!=.+?$) Hey Patrick, I

Re: Asking the experts for a less greedy regex

2019-06-22 Thread F. Alfredo Rego
Thanks, Patrick. Alfredo > On Jun 22, 2019, at 1:15 PM, Patrick Woolsey wrote: > > On Jun 22, 2019, at 13:03, F. Alfredo Rego wrote: >> >> I’m interested in finding “if” statements that contain the negation operator >> “!” (or potentially several negation operators) anywhere, regardless of

Re: Asking the experts for a less greedy regex

2019-06-22 Thread Patrick Woolsey
On Jun 22, 2019, at 13:03, F. Alfredo Rego wrote: > > I’m interested in finding “if” statements that contain the negation operator > “!” (or potentially several negation operators) anywhere, regardless of blank > lines, parentheses, indentation, and so on. > > My motivation is to verify, one

Asking the experts for a less greedy regex

2019-06-22 Thread F. Alfredo Rego
Hello Regex gurus, I’m interested in finding “if” statements that contain the negation operator “!” (or potentially several negation operators) anywhere, regardless of blank lines, parentheses, indentation, and so on. My motivation is to verify, one by one, the scope(s) of the negation(s).