<?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: Matching Innermost HTML Elements</title>
	<atom:link href="http://blog.stevenlevithan.com/archives/match-innermost-html-element/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.stevenlevithan.com/archives/match-innermost-html-element</link>
	<description>A JavaScript and regular expression centric blog</description>
	<lastBuildDate>Thu, 11 Mar 2010 18:49:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sean</title>
		<link>http://blog.stevenlevithan.com/archives/match-innermost-html-element/comment-page-1#comment-45625</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Sun, 03 Jan 2010 00:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=14#comment-45625</guid>
		<description>Just had the local Barnes &amp; Noble order it for me.</description>
		<content:encoded><![CDATA[<p>Just had the local Barnes &amp; Noble order it for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjay</title>
		<link>http://blog.stevenlevithan.com/archives/match-innermost-html-element/comment-page-1#comment-43574</link>
		<dc:creator>Sanjay</dc:creator>
		<pubDate>Fri, 13 Nov 2009 11:49:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=14#comment-43574</guid>
		<description>Your post suggest to trace the table elements. My problem is that I want all the data from the HTML page except for the data in between table start and table end.

Can you please guide me on that?</description>
		<content:encoded><![CDATA[<p>Your post suggest to trace the table elements. My problem is that I want all the data from the HTML page except for the data in between table start and table end.</p>
<p>Can you please guide me on that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://blog.stevenlevithan.com/archives/match-innermost-html-element/comment-page-1#comment-32329</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Wed, 06 May 2009 01:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=14#comment-32329</guid>
		<description>I&#039;m fairly new to RegEx and this post was a huge help.  Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m fairly new to RegEx and this post was a huge help.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav</title>
		<link>http://blog.stevenlevithan.com/archives/match-innermost-html-element/comment-page-1#comment-31785</link>
		<dc:creator>Gaurav</dc:creator>
		<pubDate>Tue, 28 Apr 2009 06:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=14#comment-31785</guid>
		<description>Hi Steven,

First, thanks for this wonderful post.
I&#039;m new to regular expressions. Above you mentioned regular expression to get outermost table elements &quot;]*&gt;(?&gt;(?:[^&lt;]++&#124;]*&gt;))+&#124;(?R))*&quot;. I tried to convert this to make it work for javascript, but couldn&#039;t able to do it.
Can you please help me out. 

I have 1 more issue. Can we get all the table elements in an array 1 by 1, starting from outer most to innermost.. for example

tableArray[0] = &quot; ..  .... .... ...  .. &quot;;
tableArray[1] = &quot; .... .... ... &quot;;
tableArray[2] = &quot;....&quot;;

It can be done in javascript using regular expression and recursion ?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Steven,</p>
<p>First, thanks for this wonderful post.<br />
I&#8217;m new to regular expressions. Above you mentioned regular expression to get outermost table elements &#8220;]*&gt;(?&gt;(?:[^&lt;]++|]*&gt;))+|(?R))*&#8221;. I tried to convert this to make it work for javascript, but couldn&#8217;t able to do it.<br />
Can you please help me out. </p>
<p>I have 1 more issue. Can we get all the table elements in an array 1 by 1, starting from outer most to innermost.. for example</p>
<p>tableArray[0] = &#8221; ..  &#8230;. &#8230;. &#8230;  .. &#8220;;<br />
tableArray[1] = &#8221; &#8230;. &#8230;. &#8230; &#8220;;<br />
tableArray[2] = &#8220;&#8230;.&#8221;;</p>
<p>It can be done in javascript using regular expression and recursion ?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SamGoody</title>
		<link>http://blog.stevenlevithan.com/archives/match-innermost-html-element/comment-page-1#comment-28251</link>
		<dc:creator>SamGoody</dc:creator>
		<pubDate>Sun, 22 Mar 2009 12:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=14#comment-28251</guid>
		<description>@yoda.pt:
I don&#039;t have a one liner regex like those Steve throws around.  But if you just want to get the job done:
I wrote a PHP class that allows you to get or set the content of any element(s) using CSS selectors [plus some other features].
Its small, quick, and pretty powerful, and does not the use built in the PCRE recursion.  [Intentionally - this is quicker and handles invalid HTML.] 

If you [or anyone else] are interested, email me at siteroller at gmail.</description>
		<content:encoded><![CDATA[<p>@yoda.pt:<br />
I don&#8217;t have a one liner regex like those Steve throws around.  But if you just want to get the job done:<br />
I wrote a PHP class that allows you to get or set the content of any element(s) using CSS selectors [plus some other features].<br />
Its small, quick, and pretty powerful, and does not the use built in the PCRE recursion.  [Intentionally - this is quicker and handles invalid HTML.] </p>
<p>If you [or anyone else] are interested, email me at siteroller at gmail.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
