in reply to Re^2: One regex construct to handle multiple string types
in thread One regex construct to handle multiple string types
It's not about \w, but about backtracking.
\w* initially 'eats' 2L, but then is forced to ... well... put the 'L' back on the table to let \S have it.
Hmm... maybe 'eating' is not the best image for what's going on with backtracking regexps...?
:)
Krambambuli
---
\w* initially 'eats' 2L, but then is forced to ... well... put the 'L' back on the table to let \S have it.
Hmm... maybe 'eating' is not the best image for what's going on with backtracking regexps...?
:)
Krambambuli
---
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: One regex construct to handle multiple string types
by pobocks (Chaplain) on Nov 29, 2008 at 10:46 UTC |
In Section
Seekers of Perl Wisdom