Saturday, December 1, 2007

regularExpressions 2

regex101
Regular Expression Visualizers for VS 2005

parse-textObject – AWK with a vengeance.

Carl J » 21+ FREE Regular Expression Tools & Resources (for .Net Developers)

For those starting out with Regex'es or those who are old hands here are some resources to help.
.NET Framework Developer's Guide .NET Framework Regular Expressions
Character Classes such as . \d \s [ ] defined.
Quantifiers such as + * ? { }
Options such as Multiline Compiled SingleLine
.Net Classes such as Regex Match MatchCollection GroupCollection
Examples
Tutorials
30 Minute Regex Tutorial on CodeProject.
.Net Coders Regex Overview breaks down groups and matches in one of the best overviews of the topics.
Introduction to Regular Expressions on CodeProject.
Understanding Basic Regular Expression Syntax (Section 3.10.) in the CodeProject's book chapter preview Microsoft Visual C# .NET 2003 Developer's Cookbook. Its a preview of Chapter 3: Strings and Regular Expressions.
Eric Gunnerson's Regex 101. A listing of differing match topics. Great for a beginner to look at after acquiring the basics of Regex, many examples.
How to: Search Strings Using Regular Expressions (C# Programming Guide) in MSDN Library.
Topics
Regular Expressions and the If Conditional on OmegaCoder's blog.
Want faster regular expressions? Maybe you should think about that IgnoreCase option...
(Compilation) For an overview of the three different modes, interpreted, on-the-fly compiled and precompiled see the MSDN article CLR Inside Out, "Base Class Library Performance Tips and Tricks"
(Compilation To an Assembly) section 3.13. Building a Regular Expression Library in the CodeProject's book chapter preview Microsoft Visual C# .NET 2003 Developer's Cookbook. Its a preview of Chapter 3: Strings and Regular Expressions.
Regex and Balanced Matching by Ryan Byington (MSFT) see als How to use RegexOptions IgnorePatternWhitspace from the Base Class Library (BCL) Team Blog.
A look into Matching Balanced Constructs with .NET Regular Expressions by Wes Haggard.
Regex Hangs My Expression by David Gutierrez in the BCL team blog.
The RegexOptions.Compiled Flag and Slow Performance on 64-Bit .NET Framework 2.0 BCL Team Blog
Programs (Not Sponsored or Endorsed by Microsoft) Just listed; no order implied.
Regular Expression Designer (.Net 1)
Expresso (.Net 2)(Free but registration) Used by most regex'ers; tool updated in 2007 to version 3.
RegEx Buddy ($)
Regular Expression WorkBench (.Net 1.1)(Free)
Regular Expression Visualizer for VS2005 by Roy Osherove. Write up about it here at Visual Studio Hacks. Its a VS2005 add-in.
Regulator also by Osherove, which is a stand alone regex tester.
Web Based Regex Testers
.Net Coders Expression Tester
Regex Testor by RegExLib.com main site has library of regex'es for browsing.
Other Non Regex Tools
GPLEX Lexical Analyzer for when Regex comes up short and a forum post that gives an example of its usage.
Forums
RegexAdvice.com is where the core regexer's, many different languages not just .net, give advice. Let them know you are using the .Net version.
Google Groups Regex Discussing Regular Expressions in variuos tools (perl, php, egrep, PowerGREP, .NET, procmail etc. etc). Let's help each other build effective regexes!
ASP Message Board : Regular expressions general discussions.
Books
Regular Expressions with .NET (ebook) by Dan Appleman.
Mastering Regular Expressions by Jeffrey Friedl.
Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta.
Regular Expression Recipes: A Problem-Solution Approach (ebook) by Nathan Good.

1 comment:

Anonymous said...

Regexps are great but sometimes they can become too complex--I am wondering if there is some kind of console-like program that allows you to preview the regexps on any data without compiling anything. Hmm.