Results 1 to 3 of 3

Thread: Regular expression Help in asp.net for DOB.

  1. #1
    Join Date
    Mar 2010
    Posts
    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. #2
    Join Date
    May 2008
    Posts
    2,389

    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."

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    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

Similar Threads

  1. Using Regular Expression than Substring in Microsoft Excel
    By Jigisha in forum MS Office Support
    Replies: 5
    Last Post: 25-01-2012, 05:49 PM
  2. Regular expression in MySQL
    By Fragman in forum Software Development
    Replies: 4
    Last Post: 02-03-2010, 09:45 PM
  3. why to use * at the start of a C expression?
    By Nadiaa in forum Software Development
    Replies: 4
    Last Post: 10-02-2010, 10:27 PM
  4. Regular expression in Perl
    By Ameeryan in forum Software Development
    Replies: 2
    Last Post: 19-11-2009, 01:37 PM
  5. When will Expression Blend 3 be available
    By Madison in forum Windows Software
    Replies: 3
    Last Post: 15-07-2009, 08:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,638,253,664.13157 seconds with 17 queries