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
Disable Shortcut Keys in axwindowsmediaplayer1 (media player)
Speeding up a simple UPDATE in Oracle SQL
OutlookAnywhere for Exchange 2007 - client keeps asking for credentials
Auto fill user name in "Login" field
Incremental search listbox w/ SQL Server w/ ability to append records to the serached table
added shortcut to Public Desktop but some users not getting it - Win 2008 R2 Terminal Server
NULLS FIRST, NULLS LAST on order by
'SettingsSingleFileGenerat
or' 'ResXFileCodeGenerator' problem
Using 3rd Party SSL to Setup Exhange 2007, Outlook 2007, Server 2003 with Terminal Services
Update Panel not loading DropDown