65.9K
CodeProject is changing. Read more.
Home

C# Regular Expression Helper

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Feb 18, 2010

CPOL
viewsIcon

19351

A tool to make it easier to learn C# regular expressions...

One component of an application I’m writing uses a lot of regular expressions. To be sure I was using the right regular expressions, I’ve created this simple tiny tool to help me learn and verify regular expressions against my input data. Nothing fancy, but it might help someone out there.

For example, it took me a little while trying to find the proper regular expression to match all comments (including those that are not closed) in an XML file.

C# Regular Expression Helper

You can find the source code on my GitHub page. I recommend using this tool with this cheat sheet. It’ll definitely speed up the learning process.

Posted in .NET Tagged: C, csharp, match, Regex, regular expression, XML comment