in reply to Re: Non-greedy substitution
in thread Non-greedy substitution
If .+? were to match any less, $ wouldn't match.
I'm sorry, but I don't understand why .+? doesn't match 2 characters at position 5 - the match has to be tied to the end of the string...doesn't it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Non-greedy substitution
by ikegami (Patriarch) on Nov 15, 2024 at 19:55 UTC | |
|
Re^3: Non-greedy substitution
by Paladin (Vicar) on Nov 15, 2024 at 19:58 UTC | |
by ikegami (Patriarch) on Nov 15, 2024 at 20:14 UTC |