65.9K
CodeProject is changing. Read more.
Home

.NET RegEx Test

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.82/5 (8 votes)

Oct 20, 2006

CPOL
viewsIcon

52543

downloadIcon

822

Handy Regex test utility for .NET helps you get the right expression to use in your code

Sample Image - dotnetregextest.jpg

Introduction

Frustrated with regular expressions? Finding it a pain to escape your expressions so you can safely insert them into your code? Here is a useful tool that lets you tweak your regular expressions, and then easily copy them to use in your code. It is based on Davide Mauri's Excellent RegExText project (if you can read Italian, his Web site is also interesting). I polished it up a bit and added a few features, most notably the "copy" button which will auto-escape the regular expression and copy it to the clipboard for easy insertion into your code.

The great thing about this tool is that it uses the same Regex class you are programming with, so you are guaranteed to get the same results you saw while testing. And if you are just learning about coding with regular expressions, check out the source code for some ideas.

History

  • 20th October, 2006: Initial post