Johnny Andersson wrote:
[:digit:]{3} -> First thing found was "321", then "654", "983",
"521", "654", "459". So it also finds parts of numbers longer than
three digits. So why doesn't it, after finding "321" find "216"
rather than "654"?
I suspect because that's not the way most searches work, nor is it what
users expect. Technically, because the digits 3, 2, and 1 are classed as
"already matched" once they have been found once, so they cease to
become candidates for future matches in that repeat search.
If you go to Google and find a page with "ssss" on it, then search the
page in your browser for "ss", it will find two: one for the first "ss"
and the second for the last "ss". It won't find the middle "ss" at all.
It would probably be possible to construct a RE which *did* allow for
non-consumption, but I'm not an RE expert, so I don't know how you'd do it.
///Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]