<?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: 'Regular Expression to Grab the Content of an XML Element'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Fri, 05 Sep 2008 01:52:50 GMT</pubDate>
<item>
<title>rengber said on 8/11/08</title>
<link>http://snipplr.com/view/2661/regular-expression-to-grab-the-content-of-an-xml-element/</link>
<description><![CDATA[ Good advice, thanks! ]]></description>
<pubDate>Mon, 11 Aug 2008 18:45:54 GMT</pubDate>
<guid>http://snipplr.com/view/2661/regular-expression-to-grab-the-content-of-an-xml-element/</guid>
</item>
<item>
<title>Tomalak said on 9/4/07</title>
<link>http://snipplr.com/view/2661/regular-expression-to-grab-the-content-of-an-xml-element/</link>
<description><![CDATA[ <p>Note that this only works with RegEx engines that support lookaround and non-greedy matching, which is not guaranteed. </p>

<p>If you do not have those options, you can capture the contents in parentheses:
<code><Message>([^<]*)</Message></code></p>

<p>In loops, this is faster than using lookaround and non-greedy matching, too.</p>
 ]]></description>
<pubDate>Tue, 04 Sep 2007 08:22:48 GMT</pubDate>
<guid>http://snipplr.com/view/2661/regular-expression-to-grab-the-content-of-an-xml-element/</guid>
</item>
</channel>
</rss>