|
Boost Users : |
From: Simon Brown (simon.brown_at_[hidden])
Date: 2003-05-01 09:49:17
Wow! Thanks for the fast answer, I'm using C++ but now that you show me how
to do this I wonder why I didn't figure it out myself :-)
Simon Brown, Casa Bergenia, CH-7031 Laax
www.hb9drv.ch
----- Original Message -----
From: "Ben Hutchings" <ben.hutchings_at_[hidden]>
>
> Match against "(\\w+) (?:\\1 \\w+|\\w+ \\1)|\\w+ (\\w+) \\2" and
> return the match for whichever sub-expression (1 or 2) was matched.
>
> (I tested this with Python not Boost regex, but they should be
> compatible.)
>
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