Regular Expressions for e-mail address - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: Regular Expressions for e-mail address (/Thread-Regular-Expressions-for-e-mail-address) |
Regular Expressions for e-mail address - ganesh.dengale - 08-28-2008 Hi all, Can Any one please tell me which regular expression we can use to validate E-mail address in qtp?? Thnx in advance.... RE: Regular Expressions for e-mail address - kishoreinchennai - 09-03-2008 *@*.* RE: Regular Expressions for e-mail address - VENKATAREDDY_M - 02-03-2009 Hi This is the reg Exp for E-Mail Address ".*@.*\.com" Thanks VENKATA RE: Regular Expressions for e-mail address - Raja - 06-21-2009 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+) Raja RE: Regular Expressions for e-mail address - azeem - 08-13-2009 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 RE: Regular Expressions for e-mail address - Vijay Kumar - 02-05-2017 Code For Regular Expression Try This "^[0-9a-z*()_+%$#@!^&*=+./\}{]+@[a-z]+\.[a-z]{2,3}$" RE: Regular Expressions for e-mail address - ahmad3029 - 08-23-2022 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 |