Hi Claude,<div><br></div><div>Remember if you have access to a recent C++ compiler, you can use regular expressions! If not, you can still use the Boost alternatives: Boost.Regex or Boost.Xpressive.</div><div><br></div><div>
I&#39;m assuming that you know beforehand the number of &quot;quoted sub-strings&quot;, because otherwise, regular expressions are not so useful, and people often recommend Boost.Spirit, which is too complex for this simple task.</div>
<div><br></div><div>About the trim operation you want to do in the outside parts, remember Boost.StringAlgo has it for you. ;-)</div><div><br></div><div>Good luck,</div><div>J�lio.</div><div><br><div class="gmail_quote">2012/3/6 Claude <span dir="ltr">&lt;<a href="mailto:clros@tiscali.it">clros@tiscali.it</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In detail: If I have a string:<br>
<br>
Hello World! I am out! &#39;*here I am in*&#39; out there &#39;*and here still inside!<br>
*&#39;Hello!<br>
<br>
Should I trim it outside �the quote symbol:<br>
<br>
HelloWorld!Iamout!&#39;*Here I am in*&#39;outthere&#39;*and here still inside! *&#39;Hello!<br>
<br>
--<br>
View this message in context: <a href="http://boost.2283326.n4.nabble.com/Complex-serach-and-replace-in-C-string-tp4450535p4450584.html" target="_blank">http://boost.2283326.n4.nabble.com/Complex-serach-and-replace-in-C-string-tp4450535p4450584.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the Boost - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br>
<a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br>
</div></div></blockquote></div><br></div>