<?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: How to return tag contents with regular expressions</title> <atom:link href="http://www.placona.co.uk/179/regular-expressions/how-to-return-tag-contents-with-regular-expressions/feed/" rel="self" type="application/rss+xml" /><link>http://www.placona.co.uk/179/regular-expressions/how-to-return-tag-contents-with-regular-expressions/</link> <description>ColdFusion, Ruby and General Technology</description> <lastBuildDate>Thu, 26 Jan 2012 20:51:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>By: Matthew Lesko</title><link>http://www.placona.co.uk/179/regular-expressions/how-to-return-tag-contents-with-regular-expressions/comment-page-1/#comment-308</link> <dc:creator>Matthew Lesko</dc:creator> <pubDate>Wed, 27 Jan 2010 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-308</guid> <description>I think you&#039;d be better served solving this example with an XML Parser and XPath. While I agree regular expressions are a very powerful way to solve a number of different problems, they&#039;re also a very easy way to introduce bugs.</description> <content:encoded><![CDATA[<p>I think you&#8217;d be better served solving this example with an XML Parser and XPath. While I agree regular expressions are a very powerful way to solve a number of different problems, they&#8217;re also a very easy way to introduce bugs.</p> ]]></content:encoded> </item> <item><title>By: Marcos Placona</title><link>http://www.placona.co.uk/179/regular-expressions/how-to-return-tag-contents-with-regular-expressions/comment-page-1/#comment-307</link> <dc:creator>Marcos Placona</dc:creator> <pubDate>Tue, 26 Jan 2010 23:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-307</guid> <description>Totally right Matthew, but I just used XML to illustrate how easy it would be. In fact, I&#039;d rather use XPath (which could also be using regular expressions) for it as you mentioned.
I would normally use the regular expression approach when dealing with HTML.
I used this a lot when developing some of my projects here as well.
See http://cfaday.placona.co.uk/ for example. It uses this kind of regular expressions to get the various bits and pieces from Adobe&#039;s documentation. </description> <content:encoded><![CDATA[<p>Totally right Matthew, but I just used XML to illustrate how easy it would be. In fact, I&#8217;d rather use XPath (which could also be using regular expressions) for it as you mentioned.</p><p>I would normally use the regular expression approach when dealing with HTML.</p><p>I used this a lot when developing some of my projects here as well.</p><p>See <a
href="http://cfaday.placona.co.uk/" rel="nofollow">http://cfaday.placona.co.uk/</a> for example. It uses this kind of regular expressions to get the various bits and pieces from Adobe&#8217;s documentation.</p> ]]></content:encoded> </item> </channel> </rss>
