<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Hexadecimal Value'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Fri, 05 Sep 2008 13:12:56 GMT</pubDate>
<item>
<title>CUViper said on 11/23/06</title>
<link>http://snipplr.com/view/1700/hexadecimal-value/</link>
<description><![CDATA[ <p>I don't think that's the same thing, priyanhere.  From the perlre manpage:</p>


  <p>{n,m}  Match at least n but not more than m times</p>


<p>Thus your example would also match 4 or 5 digits.  Since we're looking for <em>exactly</em> 3 or 6, and those happen to be multiples, you could try this:</p>

<pre><code>/(#([0-9A-Fa-f]{3}){1,2}\b)/
</code></pre>
 ]]></description>
<pubDate>Thu, 23 Nov 2006 17:15:18 GMT</pubDate>
<guid>http://snipplr.com/view/1700/hexadecimal-value/</guid>
</item>
<item>
<title>priyanhere said on 11/21/06</title>
<link>http://snipplr.com/view/1700/hexadecimal-value/</link>
<description><![CDATA[ <p>This is good, but below is more efficient
/(#([0-9A-Fa-f]{3,6})\b)/</p>
 ]]></description>
<pubDate>Tue, 21 Nov 2006 05:02:36 GMT</pubDate>
<guid>http://snipplr.com/view/1700/hexadecimal-value/</guid>
</item>
</channel>
</rss>