in reply to Re: Using Look-ahead and Look-behind
in thread Using Look-ahead and Look-behind
The really interesting thing about your version is that you didn't make the capture non-greedy, you made it optional. You probably meant (.*?), which (in pre-5.10) will output empty strings every time. I haven't installed 5.10 myself, so I can't play with it right now.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex bug in 5.10 (was: Using Look-ahead and Look-behind)
by almut (Canon) on May 08, 2009 at 15:06 UTC | |
Re: Regex bug in 5.10 (was: Using Look-ahead and Look-behind)
by jds17 (Pilgrim) on May 08, 2009 at 19:47 UTC | |
by ikegami (Patriarch) on Nov 28, 2024 at 17:00 UTC |