Micro Focus QTP (UFT) Forums
QTP 9.2 RegEx issue - 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: QTP 9.2 RegEx issue (/Thread-QTP-9-2-RegEx-issue)



QTP 9.2 RegEx issue - ashv - 02-12-2011

Hi,
I am using QTP 9.2 and I have following sting in text check point.
Text:
New York, NY, United States: Sat, Feb 26, 2011 to Mon, Feb 28, 2011 | 1 room | 1 guest
RegEx I am using:
^New

But results is getting failed every time, looks like regular expression is not getting applied.
While I have implemented currently:
Like in check point properties, at constant value row icon, clicked and provided regular expression, also make sure that regular expression check box is on.

Please suggest.


Also, I suppose to get following:
"Regular Expression: ON" in Test Result window.
But I am not getting anything like that. is something wrong with QTP 9.2 or should I need to enable some option.


RE: QTP 9.2 RegEx issue - markQA - 02-13-2011

The way you are doing, it will not work for text.

Check the following links to get more idea:

http://relevantcodes.com/descriptive-programming-dp-concepts-2-regular-expressions/


RE: QTP 9.2 RegEx issue - ashv - 02-20-2011

Above link doesn't help at all.
You didn't get my query.
Anyway, Thanks for your reply. At least someone responded on this forum.

>>
I got the solution and will be sharing on this site as well soon.