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

Hi all,
Can Any one please tell me which regular expression we can use to validate E-mail address in qtp??

Thnx in advance....
Reply
#2
Not Solved
*@*.*
Reply
#3
Not Solved
Hi
This is the reg Exp for E-Mail Address

".*@.*\.com"

Thanks
VENKATA
Reply
#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
#5
Not Solved
Hi Ganesh,

Use this below Regular Expression pattern to match any valid email id.

Code:
sPattern="\b[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b"

Thanks,
Azeem
Reply
#6
Not Solved
Code For Regular Expression Try This

"^[0-9a-z*()_+%$#@!^&*=+./\}{]+@[a-z]+\.[a-z]{2,3}$"
Reply
#7
Not Solved
I think the issue is addressed. I agree with Vijay Kumar over there. That code worked for me with the given issue. You should try this as well
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)