in reply to Re: help with lazy matching
in thread help with lazy matching
I guess my thinking was that with a non-greedy modifier, my regular expression could use the slash before "bat" to match the slash, then it would match "bat" as the .+, and then finally it would match the end of line character in the file as the $.
Why does it not work that way?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: help with lazy matching
by nlwhittle (Beadle) on Jan 05, 2015 at 22:27 UTC | |
by Special_K (Pilgrim) on Jan 05, 2015 at 23:07 UTC | |
by davido (Cardinal) on Jan 05, 2015 at 23:51 UTC | |
|
Re^3: help with lazy matching
by Anonymous Monk on Jan 05, 2015 at 22:58 UTC | |
|
Re^3: help with lazy matching ( .+? versus [^/]+? rxrx -Mre=debug )
by Anonymous Monk on Jan 05, 2015 at 22:37 UTC |