$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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