<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/regex/tags/SourceCodeAnalysis</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 07 Sep 2008 08:38:12 GMT</pubDate>
<item>
<title>(Regular Expression) Regular Expression to Grab an Object Type Name from a C# Code File. - rengber</title>
<link>http://snipplr.com/view/2014/regular-expression-to-grab-an-object-type-name-from-a-c-code-file/</link>
<description><![CDATA[ <p>The first part enclosed in parens is a lookbehind matching the word "new" followed by a space.   Next is a block matching any non white space characters bordered by zero or more spaces.   Last is a lookahead block matching zero or more square brackets or parens.  This excludes things like arrays and constructor parameters from the return.   (for example, "new string[5]" will just return "string".</p> ]]></description>
<pubDate>Mon, 22 Jan 2007 12:43:35 GMT</pubDate>
<guid>http://snipplr.com/view/2014/regular-expression-to-grab-an-object-type-name-from-a-c-code-file/</guid>
</item>
<item>
<title>(Regular Expression) Regular Expression to Grab an Object Reference Name from a C# Code File. - rengber</title>
<link>http://snipplr.com/view/1998/regular-expression-to-grab-an-object-reference-name-from-a-c-code-file/</link>
<description><![CDATA[ <p>This expression grabs the token preceding the = sign which precedes the keyword new.   The expression within the parenthesis is a positive lookahead which matches an equal sign followed by zero or more spaces, then zero or more characters (for example an explicit cast) followed again by zero or more spaces, finally the keyword new, and at least one space.</p> ]]></description>
<pubDate>Thu, 18 Jan 2007 12:30:24 GMT</pubDate>
<guid>http://snipplr.com/view/1998/regular-expression-to-grab-an-object-reference-name-from-a-c-code-file/</guid>
</item>
<item>
<title>(Regular Expression) Regular Expression to Grab a Method Name from a C# Code File. - rengber</title>
<link>http://snipplr.com/view/1995/regular-expression-to-grab-a-method-name-from-a-c-code-file/</link>
<description><![CDATA[ <p>The expression in parenthesis is a positive look ahead.  It seeks a single open parenthesis.   The to slash s expressions will seek whatever non space characters precede the parenthesis by zero or more spaces.</p> ]]></description>
<pubDate>Wed, 17 Jan 2007 20:48:47 GMT</pubDate>
<guid>http://snipplr.com/view/1995/regular-expression-to-grab-a-method-name-from-a-c-code-file/</guid>
</item>
<item>
<title>(Regular Expression) Regular Expression to Grab a ClassName from a C# Code File - rengber</title>
<link>http://snipplr.com/view/1981/regular-expression-to-grab-a-classname-from-a-c-code-file/</link>
<description><![CDATA[ <p>The expression inside the parenthesis indicates a positive lookbehind.  It will match any occurance of the literal "class".  
The two slash s's represent an occurance of spaces following class and then any non space characters.  These capture the name of the class.</p> ]]></description>
<pubDate>Tue, 16 Jan 2007 18:24:31 GMT</pubDate>
<guid>http://snipplr.com/view/1981/regular-expression-to-grab-a-classname-from-a-c-code-file/</guid>
</item>
</channel>
</rss>