Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Anybody who's writing a RegEx (regular expression) knows that they can be hard to troubleshoot & debug. Or more importantly, trying to learn them can be equally as hard because there is no easy way to test out your regex.

 

Because of this, I decided to write a quick & simple .Net 2.0 app that lets you enter a regex and a string to match against, and it displays in realtime if the regex is a match, not a match, or invalid regex. I've also included the source code, and I welcome anybody to make improvements and email the source back to me. Also, I've included some regexes I wrote that I like to call my "Ultimate Regexes" because they are very flexible and cover every sane alternate way to enter such data. The regexes I've included are US Phone, International Email, US Zip Code, US Social Security number and Credit Card number.

 

http://rhelik.lehost.net/blog/RegEx.gif

 

Get the Ulitily (10k zipped .EXE)

Get the Source Code (103k zip)

Edited by travisowens
Experience is something you don't get until just after the moment you needed it

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...