RegExp for Data

  • Thread starter Thread starter Paperback Writer
  • Start date Start date
P

Paperback Writer

Hi,
I'd like know if some good soul can send me a RegularExpression for Data in
this format: dd/mm/yyyy

Thanks in advance

--

Atenciosamente,

Daniel Groh
CTF Technologies do Brasil Ltda.
Analista Programador
Fone: 11 3837-4203
E-mail: (e-mail address removed)
 
Hi Daniel,

The best reference I have found online for Regular Expressions related
to .NET is http://RegExLib.com.

As for your request, here is what I normally use:
^((((0?[13578])|(1[02]))[\/]((0?[1-9]|[0-2][0-9])|(3[01])))|(((0?[469])|(11))[\/]((0?[1-9]|[0-2][0-9])|(30)))|(0?[2][\/](0?[1-9]|[0-2][0-9])))[\/]((19\d{2})|(2[01]\d{2}))$

Tod Birdsall, MCSD
http://tod1d.blogspot.com
 

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

Similar Threads

AutoEventWireup 2
EventLog does not write 2
SqlParameter ??? 5
inherited classes 4
Creating my events. 2
Unable to find script library 1
Context.Handler ? 1
Create a list from offset data 9

Back
Top