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
Using shell with redirection
how do i stop a java code?
No Suitable Driver Found
Remotely add Computers into Domain.
Question about Exchange 2010 mailbox move.
Forgot how to do 1 to many SQLs
paypal receiving preferences have different options for different accounts
Saving Hosts File on iMac OSx
Does QuickBooks allow you to save an Invoice layout from an earlier version say QBE2008 and allow you to import the old file
XP runs slow error 0XC000005e,The Security System detected an attempted downgrade attack for server