Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: need regExp help...


Message #1 by "Stas" <stas@z...> on Thu, 23 May 2002 15:24:33 +0300
This is a multi-part message in MIME format.

--Boundary_(ID_BrjuRznMjD4BmPB2BZ3wjw)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

MessageTry this one :

var reg = /^[0-1]?[0-9].[0-3]?[0-9].[1-2]?[0,9]?[0,9][0-9]$/;

var a = reg.exec(value);
if (!a)
 return false;


Oleg.
  -----Original Message-----
  From: Stas [mailto:stas@z...]
  Sent: May 23, 2002 8:25 AM
  To: javascript
  Subject: [javascript] need regExp help...


  Hi guys!

  I need a regular expression that matches the string in format "dd.mm.yyyy"
  (e.g. 01.01.2001 or 12.12.2001)

  I would really appreciate your help in this one....
  Thanx in advance


  Stas


  --- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 ---


  Return to Index