My Blog List

Saturday, March 17, 2012

Regular Expressions - Date, Email


Here are some sample regular expressions for your ref.
Reg Expression for Date:
  1. (0[1-9]|1[012])[//](0[1-9]|[12][0-9]|3[01])[//]200[0-9]$
Reg Expression for Email IDs: 
  1. \b[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b
  2. ((\w+)(\.|\_|\-)(\w+)|(\w+))(\@)(\w+)(\.)(w+)

1 comment:

  1. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium

    ReplyDelete