25 Aug
2002
25 Aug
'02
11:50 a.m.
just interesting - why it had been implemented that way instead of getting all actual matches? had it been intended specially for some reason?
Well as I said all the regex libs out there (including perl) do it that way, there is also an efficiency reason: how many marked repeats are you prepared to store, and how do you apply the "leftmost longest" rule if there isn't one unambiguous answer to "what matched sub-expression N?". John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm