<?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: Regular Expressions in C# &#8211; Practical Usage</title>
	<atom:link href="http://www.dijksterhuis.org/regular-expressions-csharp-practical-use/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dijksterhuis.org/regular-expressions-csharp-practical-use/</link>
	<description>Information, news about programming in C#</description>
	<lastBuildDate>Sun, 21 Feb 2010 16:48:33 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nayana</title>
		<link>http://www.dijksterhuis.org/regular-expressions-csharp-practical-use/comment-page-1/#comment-683</link>
		<dc:creator>Nayana</dc:creator>
		<pubDate>Tue, 07 Apr 2009 08:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=808#comment-683</guid>
		<description>HI,

I am relatively new to regular expressions. I am still not clear on what does [^&gt;] match in the following regex?
Regex HTMLTag = new Regex(@”(]+&gt;)”);
string Input = &quot;&lt;b&gt;&lt;i&gt;&lt;a href=&#039;http://apple.com&#039;&gt;Ipod News&lt;/a&gt;&lt;/b&gt;&lt;/i&gt;&quot;;</description>
		<content:encoded><![CDATA[<p>HI,</p>
<p>I am relatively new to regular expressions. I am still not clear on what does [^&gt;] match in the following regex?<br />
Regex HTMLTag = new Regex(@”(]+&gt;)”);<br />
string Input = &#8220;<b><i><a href='http://apple.com'>Ipod News</a></i></b>&#8220;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.dijksterhuis.org/regular-expressions-csharp-practical-use/comment-page-1/#comment-446</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Fri, 13 Mar 2009 15:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=808#comment-446</guid>
		<description>Thanks for the article.  One thing I never knew is the string swap.  Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for the article.  One thing I never knew is the string swap.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JM</title>
		<link>http://www.dijksterhuis.org/regular-expressions-csharp-practical-use/comment-page-1/#comment-444</link>
		<dc:creator>JM</dc:creator>
		<pubDate>Fri, 13 Mar 2009 10:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=808#comment-444</guid>
		<description>nice !</description>
		<content:encoded><![CDATA[<p>nice !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Kemp</title>
		<link>http://www.dijksterhuis.org/regular-expressions-csharp-practical-use/comment-page-1/#comment-443</link>
		<dc:creator>David Kemp</dc:creator>
		<pubDate>Fri, 13 Mar 2009 09:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=808#comment-443</guid>
		<description>In you first example,
Regex HTMLTag = new Regex(@”(]+&gt;)”);
the parenthesis are redundant, and as you&#039;re not using the captured group, you should either remove them, or replace then with the non-capturing group instruction
eg
Regex HTMLTag = new Regex(@”]+&gt;”);
or
Regex HTMLTag = new Regex(@”(?:]+&gt;)”);</description>
		<content:encoded><![CDATA[<p>In you first example,<br />
Regex HTMLTag = new Regex(@”(]+&gt;)”);<br />
the parenthesis are redundant, and as you&#8217;re not using the captured group, you should either remove them, or replace then with the non-capturing group instruction<br />
eg<br />
Regex HTMLTag = new Regex(@”]+&gt;”);<br />
or<br />
Regex HTMLTag = new Regex(@”(?:]+&gt;)”);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn</title>
		<link>http://www.dijksterhuis.org/regular-expressions-csharp-practical-use/comment-page-1/#comment-436</link>
		<dc:creator>Martijn</dc:creator>
		<pubDate>Fri, 13 Mar 2009 02:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=808#comment-436</guid>
		<description>Hi Pedro, 

There is no need for a final question mark. Similar to how &quot;a&quot; matches every &quot;a&quot; in the input string, the HTML Tag pattern as a whole matches to every valid HTML tag in the input string. 

You only need a question mark if in the pattern definition you might, or might not have a particular character. 

Cheers,
Martijn</description>
		<content:encoded><![CDATA[<p>Hi Pedro, </p>
<p>There is no need for a final question mark. Similar to how &#8220;a&#8221; matches every &#8220;a&#8221; in the input string, the HTML Tag pattern as a whole matches to every valid HTML tag in the input string. </p>
<p>You only need a question mark if in the pattern definition you might, or might not have a particular character. </p>
<p>Cheers,<br />
Martijn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pedro</title>
		<link>http://www.dijksterhuis.org/regular-expressions-csharp-practical-use/comment-page-1/#comment-432</link>
		<dc:creator>pedro</dc:creator>
		<pubDate>Thu, 12 Mar 2009 18:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=808#comment-432</guid>
		<description>Why (]+&gt;) instead of (]+&gt;)?</description>
		<content:encoded><![CDATA[<p>Why (]+&gt;) instead of (]+&gt;)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
