Regular Expression Syntax - 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 Syntax (/Thread-Regular-Expression-Syntax) |
RE: Regular Expression Syntax - funajju - 05-28-2010 Saket said to use in this way . Lets try like this ? and check once http *://210.212.176.226/ins_byname.php?page=2* RE: Regular Expression Syntax - Anu - 05-28-2010 Hi, I used the same expression in the object repository of Next. But on running the script following error comes. Regards, Anu RE: Regular Expression Syntax - Saket - 05-29-2010 try this http://210.212.176.226/ins_byname.php?page=.* if this does not work http.*://210.212.176.226/.*.php?.* RE: Regular Expression Syntax - Anu - 05-31-2010 Hi Saket, below works for me. http.*://210.212.176.226/.*.php?.* Thnks Could you please tell me the best way to learn regular expression. Regards, Anu RE: Regular Expression Syntax - Saket - 05-31-2010 There are many tutorials available for this See if these posts helps you Guide to Regular Expressions in QTP/UFT 8 tips on advanced Regular Expressions in QTP/UFT RE: Regular Expression Syntax - Anu - 05-31-2010 Hi Saket, Thnks for the links............... I have one more link which i want to regularize and the link is : http://210.212.12.163/directory/meghlaya/megh_advsearch.php?page=2&search=req&name=kumar&address=&std=&phone= For the above mentioned link i used the following below regex but no one was working: 1.http.*://210.212.12.163/.*.php?.* 2.http.*://210.212.12.163/.*/.*/.*.php?.* 3.http. *://210.212.12.163/directory/meghlaya/megh_advsearch.php?.* Could you please tell me where i was wrong. Regards, Anu RE: Regular Expression Syntax - Saket - 06-01-2010 i tried with all of these and all are working. check OR, if you have mis-spelled somewhere or dropped an space in between, or the correct page you are referring. RE: Regular Expression Syntax - Anu - 06-01-2010 Hi Saket, Iwant that it should not go to page=1 but navigate to other pages like page=2, page=3 and so on, whose link is written below: http://210.212.12.163/directory/meghlaya/megh_advsearch.php?page=1&search=req&name=kumar&address=&std=&phone= The OR used is: http.*://210.212.12.163/.*/.*/.*.php?page.[=^1].* Please tell me the correct OR syntax for the above. RE: Regular Expression Syntax - Saket - 06-02-2010 removing [=^1] , should help RE: Regular Expression Syntax - Anu - 06-02-2010 Hi Saket, i did not get you. Could you please explain me. My query is : I want that it should go to page=2 and above but not page=1. Regards, Anu |