<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Regex 101 Exercise S1 - Discussion</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx</link><description>Welcome to Regex 101 discussion section 3. My goals for these discussions are twofold. First, I'd like to give a reasonable answer (or set of answers, more likely) to the exercise. Second, I'd like to impart some understanding of how the regex works,</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Regex 101 Exercise S1 - Discussion</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#485694</link><pubDate>Thu, 27 Oct 2005 20:13:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:485694</guid><dc:creator>David Grant</dc:creator><description>Those comments are analogous to these C# comments:&lt;br&gt;&lt;br&gt;int capacity = bag.Capacity; // Assign bag capacity to capacity.&lt;br&gt;int i = 3; // Assign 3 to i.&lt;br&gt;string firstName = &amp;quot;David&amp;quot;; // Set firstName = David.&lt;br&gt;double acreage; // Declare acreage.&lt;br&gt;&lt;br&gt;I know this is just an exercise, but I'd only use the multi-line + comments on complicated expressions.</description></item><item><title>re: Regex 101 Exercise S1 - Discussion</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#485715</link><pubDate>Thu, 27 Oct 2005 20:33:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:485715</guid><dc:creator>Avonelle Lovhaug</dc:creator><description>This is the best explanation of a regular expression that I have ever seen. I regularly struggle with regular expressions, and I found this approach very helpful (including the multi-line comments).</description></item><item><title>re: Regex 101 Exercise S1 - Discussion</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#485806</link><pubDate>Thu, 27 Oct 2005 22:33:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:485806</guid><dc:creator>Michael</dc:creator><description>Won't \d match a lot more than just ASCII 0-9? For example, regex.Match(&amp;quot;\x066199-55-1827&amp;quot;) also returns true.&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/oldnewthing/archive/2004/03/09/86555.aspx"&gt;http://blogs.msdn.com/oldnewthing/archive/2004/03/09/86555.aspx&lt;/a&gt;</description></item><item><title>re: Regex 101 Exercise S1 - Discussion</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#485838</link><pubDate>Thu, 27 Oct 2005 23:23:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:485838</guid><dc:creator>ericgu</dc:creator><description>Michael, &lt;br&gt;&lt;br&gt;The answer to your question is, of course, yes. But that's exactly the kind of detail that it is critical to omit in an introductory explanation. The more information is presented, the harder it is for people to pull out the important information, and the difference between [0-9] and \d is not important information to somebody learning regex. &lt;br&gt;&lt;br&gt;For the same reason, I didn't mention that the behavior of ^ and $ is modified by the RegexOptions.Multiline flag.</description></item><item><title>re: Regex 101 Exercise S1 - Discussion</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#485878</link><pubDate>Fri, 28 Oct 2005 00:48:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:485878</guid><dc:creator>Jeff Atwood</dc:creator><description>&amp;gt; I'm also considering disabling comments on the exercise posts so that people aren't distracted by them.&lt;br&gt;&lt;br&gt;What's distracting about the comments?&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.post-literate.com/gerpunx/archives/2005/01/prepare_to_lose_your_mind.php"&gt;http://www.post-literate.com/gerpunx/archives/2005/01/prepare_to_lose_your_mind.php&lt;/a&gt;</description></item><item><title>re: Regex 101 Exercise S1 - Discussion</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#487260</link><pubDate>Mon, 31 Oct 2005 17:41:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:487260</guid><dc:creator>Brian</dc:creator><description>I like the idea of disabling comments on exercises. I'm weak willed and will usually choose to look at comments before trying an exercise.</description></item><item><title> Eric Gunnerson s C Compendium Regex 101 Exercise S1 Discussion | Green Tea Fat Burner</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#9706815</link><pubDate>Mon, 08 Jun 2009 05:33:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9706815</guid><dc:creator> Eric Gunnerson s C Compendium Regex 101 Exercise S1 Discussion | Green Tea Fat Burner</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://greenteafatburner.info/story.php?id=2230"&gt;http://greenteafatburner.info/story.php?id=2230&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Eric Gunnerson s C Compendium Regex 101 Exercise S1 Discussion | Quick Diets</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#9715697</link><pubDate>Tue, 09 Jun 2009 14:37:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9715697</guid><dc:creator> Eric Gunnerson s C Compendium Regex 101 Exercise S1 Discussion | Quick Diets</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://quickdietsite.info/story.php?id=381"&gt;http://quickdietsite.info/story.php?id=381&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Eric Gunnerson s C Compendium Regex 101 Exercise S1 Discussion | Cellulite Creams</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#9720930</link><pubDate>Wed, 10 Jun 2009 04:51:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9720930</guid><dc:creator> Eric Gunnerson s C Compendium Regex 101 Exercise S1 Discussion | Cellulite Creams</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://cellulitecreamsite.info/story.php?id=2616"&gt;http://cellulitecreamsite.info/story.php?id=2616&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Eric Gunnerson s C Compendium Regex 101 Exercise S1 Discussion | pool toys</title><link>http://blogs.msdn.com/ericgu/archive/2005/10/27/485655.aspx#9774324</link><pubDate>Thu, 18 Jun 2009 11:42:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9774324</guid><dc:creator> Eric Gunnerson s C Compendium Regex 101 Exercise S1 Discussion | pool toys</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://pooltoysite.info/story.php?id=3222"&gt;http://pooltoysite.info/story.php?id=3222&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>