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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: regular expression (/Thread-regular-expression--6278) |
regular expression - rjkmr.aiht - 04-24-2012 Code: Set salesforcehomepage=browser("title:=salesforce.com - Unlimited Edition - Windows Internet Explorer").page("title:=salesforce.com - Unlimited Edition") can any one please help me out of this , how to use regular expression for this paqcticular is this possible to create i create objects for this browser and page with the regular expression sorry i wrongly updated my attachment RE: regular expression - sshukla12 - 04-24-2012 Hi, Regular expression for Campaign ID, since details/paatern is not specified by u, we assume that first letter would be a character ranging from A-Z followed by at least 5 numeric digits( if numeric digits are more u can update that also in Regular expression). Use the below regular expression in defining the innertext/innerhtml of the id {A-Z}{0-9}{5,} Or if there is some other patter let us know. Regards, Sankalp RE: regular expression - rjkmr.aiht - 04-25-2012 sorry man i wrongly updated my attachment Code: Set salesforcehomepage=browser("title:=salesforce.com - Unlimited Edition - Windows Internet Explorer").page("title:=salesforce.com - Unlimited Edition") regular expression for the above one RE: regular expression - sshukla12 - 04-25-2012 Hi, Any fixed pattern and what part u want to use under regular expression. Regards, Sankalp |