Boost logo

Boost Users :

From: John Maddock (john_maddock_at_[hidden])
Date: 2002-08-25 06:50:38


> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net