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
Sony Bravia no sound output from my PC
Locking down Exchange in SBS 2003
Open Source SMDR for use with Avaya IP Office v6
Close a connection to Ajax
can't find Printer Setup Utility in Mac OS X 10.5.8
finding an item in a DataTable
Exchange 2007 Incremental backup
Include page headers when printing HTML pages with different headers on some of each page
iphone sees wifi network but password incorrect
VMware Workstation 7.1 Won't Install