From: Darin Adler (darin_at_[hidden])
Date: 2003-04-28 12:49:13


On Monday, April 28, 2003, at 09:48 AM, Simon Brown wrote:

> What I want to match is two consecutive callsigns separated by
> whitespace, for example 'hb9drv hb9drv' but not 'hb9drv hb9drX'.
>
> I can define the match condition for a callsign, but can I use the
> match option {2,3} somehow to match the same callsign two or three
> times? Effectively match the same word two or three times?

You can do this with a back reference. This is documented at
<http://www.boost.org/libs/regex/syntax.htm>.

     -- Darin