
1 May
2003
1 May
'03
2:49 p.m.
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@businesswebsoftware.com>
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.)