<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Regexp with boost</title>
	<atom:link href="http://flavio.castelli.name/regexp-with-boost/feed" rel="self" type="application/rss+xml" />
	<link>http://flavio.castelli.name/regexp-with-boost</link>
	<description>debugging my life</description>
	<lastBuildDate>Sat, 28 Jan 2012 07:37:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Francesco</title>
		<link>http://flavio.castelli.name/regexp-with-boost/comment-page-1#comment-13586</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Fri, 01 Jul 2011 20:26:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.flavio.castelli.name/regexp-with-boost/#comment-13586</guid>
		<description>Sure, but you need to have in mind that regex can only be applied over patterns that can be matched against an expression. In case you need to find the second parameter from any string like:
&quot;aa 00 b0 aaaaa a 123455&quot;
I just need a regex like:
^[0-9a-f ]{1,59}\s([0-9a-f]{1,59})

It will match any line starting with a string that has numbers or letters (at least 1 and a maximum of 59), followed by space and having a second string, this is the group you need, so you just surround it with &#039;(&#039; and &#039;)&#039;.</description>
		<content:encoded><![CDATA[<p>Sure, but you need to have in mind that regex can only be applied over patterns that can be matched against an expression. In case you need to find the second parameter from any string like:<br />
&#8220;aa 00 b0 aaaaa a 123455&#8243;<br />
I just need a regex like:<br />
^[0-9a-f ]{1,59}\s([0-9a-f]{1,59})</p>
<p>It will match any line starting with a string that has numbers or letters (at least 1 and a maximum of 59), followed by space and having a second string, this is the group you need, so you just surround it with &#8216;(&#8216; and &#8216;)&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco</title>
		<link>http://flavio.castelli.name/regexp-with-boost/comment-page-1#comment-13585</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Fri, 01 Jul 2011 19:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.flavio.castelli.name/regexp-with-boost/#comment-13585</guid>
		<description>Yes, there is!
You should use an conditional to check the group under test, like this:
If you &quot;castelli&quot; or &quot;(castelli)&quot; its ok, but it should not match &quot;(castelli&quot; or &quot;castelli)&quot;, to do so, you just make an expression like this:
(\()?castelli(?(1)\))

The (1) is related to the first group, it means that if the group 1 - (\)) - exists, the second condition should be tested too. I think it can help on taking care about parenthesis in this case.</description>
		<content:encoded><![CDATA[<p>Yes, there is!<br />
You should use an conditional to check the group under test, like this:<br />
If you &#8220;castelli&#8221; or &#8220;(castelli)&#8221; its ok, but it should not match &#8220;(castelli&#8221; or &#8220;castelli)&#8221;, to do so, you just make an expression like this:<br />
(\()?castelli(?(1)\))</p>
<p>The (1) is related to the first group, it means that if the group 1 &#8211; (\)) &#8211; exists, the second condition should be tested too. I think it can help on taking care about parenthesis in this case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: caneta</title>
		<link>http://flavio.castelli.name/regexp-with-boost/comment-page-1#comment-13406</link>
		<dc:creator>caneta</dc:creator>
		<pubDate>Wed, 01 Jun 2011 15:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.flavio.castelli.name/regexp-with-boost/#comment-13406</guid>
		<description>But if I have a string with a lot of useless blanks and tabs like mystr = &quot;     1         4      999   3   67     &quot;, is there a way to reproduce awk behaviour (like &quot;cat mystr &#124; awk &#039;{ print $2 }&#039;&quot;, obtaining 4 ) with boost/regex libraries?</description>
		<content:encoded><![CDATA[<p>But if I have a string with a lot of useless blanks and tabs like mystr = &#8221;     1         4      999   3   67     &#8220;, is there a way to reproduce awk behaviour (like &#8220;cat mystr | awk &#8216;{ print $2 }&#8217;&#8221;, obtaining 4 ) with boost/regex libraries?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xupicor</title>
		<link>http://flavio.castelli.name/regexp-with-boost/comment-page-1#comment-13032</link>
		<dc:creator>Xupicor</dc:creator>
		<pubDate>Tue, 25 Jan 2011 12:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.flavio.castelli.name/regexp-with-boost/#comment-13032</guid>
		<description>Maybe count matched &#039;(&#039; and &#039;)&#039; chars, and if the count_of_open == count_of_closed then the syntax is correct.</description>
		<content:encoded><![CDATA[<p>Maybe count matched &#8216;(&#8216; and &#8216;)&#8217; chars, and if the count_of_open == count_of_closed then the syntax is correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emre</title>
		<link>http://flavio.castelli.name/regexp-with-boost/comment-page-1#comment-10600</link>
		<dc:creator>Emre</dc:creator>
		<pubDate>Wed, 31 Mar 2010 21:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.flavio.castelli.name/regexp-with-boost/#comment-10600</guid>
		<description>Is there a way to accomplish parantheses matching like (((catelli))) 
For example this one is not correct: (((catelli) since there is only one at the right. Is it possible to detect this with regex_match ?</description>
		<content:encoded><![CDATA[<p>Is there a way to accomplish parantheses matching like (((catelli)))<br />
For example this one is not correct: (((catelli) since there is only one at the right. Is it possible to detect this with regex_match ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

