Simon Brown | 1 May 2003 13:52
A few days ago I received great help with a regexp question - now here's
another which I doubt can be done.

Question: if the text string contains three words AAA BBB AAA then return
the string (if any) which is repeated two or three times.

Examples:
AAA AAA AAA return AAA
AAA BBB AAA return AAA
AAA AAA BBB return AAA
AAA BBB CCC return <nothing>

Can this be done with a regular expression?

And a very, very big thanks to those who wrote regexp, you have no idea how
useful it is for me :-)

Simon Brown, Casa Bergenia, CH-7031 Laax
www.hb9drv.ch

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/cjB9SD/od7FAA/uetFAA/EbFolB/TM
---------------------------------------------------------------------~->

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe <at> yahoogroups.com>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


Gmane