Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression Syntax
#11
Solved: 10 Years, 8 Months, 3 Weeks ago
Saket said to use in this way .

Lets try like this ? and check once

http *://210.212.176.226/ins_byname.php?page=2*
Reply
#12
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,

I used the same expression in the object repository of Next.
But on running the script following error comes.

Regards,
Anu


Attached Files Image(s)
   
Reply
#13
Solved: 10 Years, 8 Months, 3 Weeks ago
try this
http://210.212.176.226/ins_byname.php?page=.*

if this does not work
http.*://210.212.176.226/.*.php?.*
Reply
#14
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi Saket,

below works for me.
http.*://210.212.176.226/.*.php?.*

Thnks Smile

Could you please tell me the best way to learn regular expression.

Regards,
Anu
Reply
#15
Solved: 10 Years, 8 Months, 3 Weeks ago
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

Reply
#16
Solved: 10 Years, 8 Months, 3 Weeks ago
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...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
Reply
#17
Solved: 10 Years, 8 Months, 3 Weeks ago
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.

Reply
#18
Solved: 10 Years, 8 Months, 3 Weeks ago
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...std=&phone=

The OR used is:
http.*://210.212.12.163/.*/.*/.*.php?page.[=^1].*

Please tell me the correct OR syntax for the above.
Reply
#19
Solved: 10 Years, 8 Months, 3 Weeks ago
removing [=^1] , should help

Reply
#20
Solved: 10 Years, 8 Months, 3 Weeks ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,253 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,196 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,612 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,392 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,011 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 2 Guest(s)