|
| |||||||||
| Tags: asp, javascript, net, regular expression, sharepoint, validations |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Regular expression Help in asp.net for DOB.
DOB(MM/DD/YYYY) I have 3 textboxes one for Month/one for Date/ one for Year. Can i have any regular expression for this. Thanks in Advance !! |
|
#2
| ||||
| ||||
| Regular expression Help in asp.net for DOB.
The simplest regular expression is one you're already familiar with—the literal string. A particular string can be described, literally, by itself, and thus a regular expression pattern like foo would match the input string foo exactly once. In this case, it would also match the input: The food was quite tasty, which might be not be desired if only a precise match is sought. Of course, matching exact strings to themselves is a trivial implementation of regular expressions, and doesn't begin to reveal their power. What if instead of foo you wanted to find all words starting with the letter f, or all three letter words? Now you've gone beyond what literal strings can do (within reason)—it's time to learn some more about regular expressions. Below is a sample literal expression and some inputs it would match. Code: Pattern Inputs (Matches) foo foo, food, foot, "There's evil afoot."
__________________ The FIFA Manager 2009 PC Game |
|
#3
| ||||
| ||||
| Re: Regular expression Help in asp.net for DOB.
You can use only one text box and try to separated the date with space and after that you use the white space character mentioned below \s Match a whitespace character I think this will help you |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Regular expression Help in asp.net for DOB." | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Regular Expression than Substring in Microsoft Excel | Jigisha | MS Office Support | 5 | 2 Weeks Ago 06:19 PM |
| Regular expression in MySQL | Fragman | Software Development | 4 | 02-03-2010 10:15 PM |
| Convert php expression | SoftWore | Software Development | 3 | 05-12-2009 02:21 PM |
| Regular expression in Perl | Ameeryan | Software Development | 2 | 19-11-2009 02:07 PM |
| When will Expression Blend 3 be available | Madison | Windows Software | 3 | 15-07-2009 10:26 PM |