regular expressions validator

  • Thread starter Thread starter V. Jenks
  • Start date Start date
V

V. Jenks

I'm in a hurry and I was curious if there's anywhere out
there offering *free* regular expression examples for the
RegularExpressionVaildator.

I tried regexplib.com but half of the examples are throwing
errors which leads me to believe they're not .net-compatible.

I need several different kinds for phone numbers, email,
etc. and the basic examples in vs.net don't cut it.

Thanks!
 
I don't know the best place to find the examples you want but I can show you
examples of what we're using on aspx pages, for email:

ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"

for a phone number:

ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}"
 
I've used many of the regular expression validators out there and this one is
hand's down the best, and it is written all in .net.

The regulator

I don't recall the home page, but you can find a downloadable link here

http://sourceforge.net/projects/regulator/

or google for it somewhere else.

Good Luck!
 
you should learn regular expressions
i'm not a specialist but i do mine when those in vs.net don't cut it for me.

do a search on google for regular expression tutorials

what are the validations you are looking for ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top