<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://regexadvice.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Construction Advice</title><link>http://regexadvice.com/forums/68/ShowForum.aspx</link><description>&lt;P&gt;Find help building expressions to suit your needs. Consult the &lt;A href="http://regexlib.com"&gt;Regular Expression Library&lt;/A&gt; to find many pre-built expressions, and add your own once you've solved your construction problem in our forum.&lt;/P&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Need help to shortest string in a match</title><link>http://regexadvice.com/forums/thread/82145.aspx</link><pubDate>Wed, 18 May 2011 22:39:31 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:82145</guid><dc:creator>chambarish</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/82145.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=82145</wfw:commentRss><description>&lt;p&gt;How to find shortest string, first occurance it should return&lt;/p&gt;&lt;p&gt;I have this string. I m looking for td whose value contains&amp;nbsp; blabla with closing td.&lt;/p&gt;&lt;p&gt;&amp;lt;tr blabla&amp;gt;&amp;lt;td&amp;gt;blabla big content&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;thisisnot&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/p&gt;&lt;p&gt;I want only this string &lt;strong&gt;&amp;lt;tr blabla&amp;gt;&amp;lt;td&amp;gt;blabla big content&amp;lt;/td&amp;gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;I m using this regex in .net&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;lt;tr.*&amp;gt;&amp;lt;td&amp;gt;blabla.*&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;I m new to regex...&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Can any one tell me the way out.&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>