Micro Focus QTP (UFT) Forums
Using Regular Expressions - 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: Using Regular Expressions (/Thread-Using-Regular-Expressions--4179)



Using Regular Expressions - Ravi_Chandra - 12-24-2010

Hi,

Can anyone help me on applying regular expressions for the below text?

XYZ 1 - 100 of 904

These numbers will change during run time...

Also can i check whether the loaded page has data or not using this text?

Thanks,
Ravi




RE: Using Regular Expressions - manishbhalshankar - 12-24-2010

Hi Ravi,

Your can use XYZ.* and the string after XYZ will be considered.
OR
XYZ [0-9].*
and so on.


RE: Using Regular Expressions - Ravi_Chandra - 12-24-2010

Hi Manish,

For "XYZ 1 - 100 of 904",
Can i use the regular expression in this way?

XYZ 1 - [0-9]|[0-9]|[0-9] of ......
|----------------| |----------------|
max 100 is displayed Not sure how many numbers
can be displayed
Can you please give the regular expresion for the last part?

Thanks,
Ravi.