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
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Cannot start the reminder service - Outlook 2007
Sorry, VMware GO doesn't currently support ESXi servers with multiple datastores.
WRT54G2 Linksys router - reset password saving actual configuration
Quick Launch Tool Bar
Owner cannot modify distributioin group
How to get lightbox to show over Flash banner?
Connector/Net no longer supports server versions prior to 4.1
Redistributing RIP into OSPF non-contiguous subnets.
blueberries- only in NJ?