|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-03-24 13:00:06
The xpressive docs say
sregex rex = sregex::compile( "(\\w+) (\\w+)!" );
can be expressed as
sregex rex = (s1= +_w) >> ' ' >> (s2= +_w) >> '!';
. Shouldn't this be
sregex rex = +_w >> ' ' >> +_w >> '!';
since you don't need to refer to previous matches?
Thanks
-Thorsten
-- Thorsten Ottosen ---------------------------- www.dezide.com http://www.cs.aau.dk/index2.php?content=Research/mi www.boost.org www.open-std.org/JTC1/SC22/WG21/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk