Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expressions for e-mail address
#4
Not Solved
Hi,

For example

if your email Id is in the following format

abc.xyz@pqr.com

then use this :
Code:
(\w+)(\.)(\w+)(\@)(\w+)(\.)(w+)


if your email Id is in the following format

abc_xyz@pqr.com

then use this :
Code:
(\w+)(\_)(\w+)(\@)(\w+)(\.)(w+)

if your email Id is in the following format

abc.xyz@pqr.com or abc_xyz@pqr.com or abc-xyz@pqr.com
or abc@pqr.com
then use this :

Code:
((\w+)(\.|\_|\-)(\w+)|(\w+))(\@)(\w+)(\.)(w+)
Thanks,
Raja
Reply


Messages In This Thread
RE: Regular Expressions for e-mail address - by Raja - 06-21-2009, 03:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to disable regular expressions in a text? ttralor 6 6,168 07-05-2013, 02:44 PM
Last Post: Staff
  Need help on using regular expressions on Java Window's title qa_tester 3 4,829 02-13-2012, 10:56 PM
Last Post: madsenfr
  java window titles & regular expressions jotdog2 1 4,036 02-13-2012, 10:55 PM
Last Post: madsenfr
  Process to use Regular Expressions in QTP using screen shots. yvslraotesting@gmail.com 1 3,314 01-31-2012, 12:45 PM
Last Post: basanth27
Big Grin Mail ID using Regular Expression asisha 2 6,624 06-07-2011, 06:58 PM
Last Post: vIns

Forum Jump:


Users browsing this thread: 1 Guest(s)