Microsoft
Software
Hardware
Network
Question : How to use OR condition in regular expression
Hi,
How to use OR condition in regular expression
my req is
YYYY/MM/DD format if the user enter YYYY/M/DD also i want to accept ?
eg:
YYYY/MM/DD---- 2010/08/19
YYYY/M/DD ---- 2010/8/19
in regular expression i worte YYYY/MM/DD
YYYY/MM/DD ---- /^\d{4}\/\(d){2}\/\d{2}$/
but i dont know how to but or condition ??
How can i do that ??
Answer : How to use OR condition in regular expression
/^\d{4}\/\d
{1,2}
\/\d{2}$
/
Random Solutions
jQuery Chained Select Boxes - Three Tiered ( third tier selected )
Configuring Exchange 2010 to receive emails for other domains
Looking for software to mirror two external hard drives.
Domain trust between Windows Server 2008 R2 and Windows Server 2003
454 5.7.3 Client does not have permission to submit mail to this server
combo box won't hold default value
Fortigate 60 - Webfiltering - allow some users
Our site is #17 on Google in its region for its keyword, how to get closer to top? Hire SEO?
Dell Inspiron 1012 - Multimedia Controller Driver
Imaging a RAID Setup to a Non-RAID Disk