Hi John,<br><br><div><span class="gmail_quote">On 22/11/2007, <b class="gmail_sendername">John Maddock</b> &lt;<a href="mailto:john@johnmaddock.co.uk">john@johnmaddock.co.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Darren Garvey wrote:<br>&gt;&gt; Is the example above supposed to work?<br><br>Nope: different iterator types: cmatch supports const char* iterators, but<br>basic_string::const_iterator isn&#39;t necessarily that type (though sometimes
<br>it is, depending on the platform/compiler).&nbsp;&nbsp;You should be using<br>boost::smatch as the match_results type when searching a std::string.</blockquote><div><br>Oh dear, I should have seen this. Thanks for the help.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">HTH, John.</blockquote><div><br>Cheers,<br>Darren</div></div>