Micro Focus QTP (UFT) Forums
regular expression - 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 expression (/Thread-regular-expression--6289)



regular expression - rjkmr.aiht - 04-27-2012

The thing is im using 3 different objects 2 are from same page ane 1 element from differtnt page this is my script

i need a perfect regular expression for salesforcampnew ,campid,salesforce,
all the three pages tiltle are looking similar please help out to get perfect regular expression for itSadSadSadSadSadSad

Code:
Set salesforcecampnew=browser("title:=Campaign Edit: New Campaign Framework ~ salesforce.com - Unlimited Edition - Windows Internet Explorer").page("title:=Campaign Edit: New Campaign Framework ~ salesforce.com - Unlimited Edition")
Set campid = Browser("title:=Campaign Framework:.*").Page("title:=Campaign Framework:.*").webtable("innertext:=Type.*Media Type.*Campaign Series.*","html tag:=table")
Set salesforceerror=browser("title:=Campaign Edit:.*").page("title:=Campaign Edit:.*").webelement("innertext:=Error: Invalid Data. Review all error.*","html tag:=DIV","outertext:=Error: Invalid Data.*")

the regular expression which im using is not working fine