Click here to Skip to main content
Licence CPOL
First Posted 20 Oct 2006
Views 24,538
Downloads 224
Bookmarked 20 times

.NET RegEx Test

By | 20 Oct 2006 | Article
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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

kurt.griffiths

Software Developer (Senior)
Jungle Disk
United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
NewsThere's a new version of the RegEx Tester Tool ! PinmemberBucanerO_Slacker23:24 1 Mar '08  
GeneralGreat! Pinmembern0ell5:30 20 Jul '07  
GeneralSpelling is incorrect. Column Lenght Pinmemberdbogey9:42 22 Jun '07  
General"@" Directive PinmemberTim McCurdy4:14 23 Jan '07  
GeneralRe: "@" Directive Pinmemberkurt.griffiths12:02 23 Jan '07  
GeneralNice tool PinmemberTHEMANJD10:29 12 Jan '07  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 20 Oct 2006
Article Copyright 2006 by kurt.griffiths
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid