Micro Focus QTP (UFT) Forums
Regular Expression for sentences - 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 for sentences (/Thread-Regular-Expression-for-sentences)



Regular Expression for sentences - dvkbabu - 03-19-2009

Hi,

I need a Regular Expression for question type of sentence. Here I am providing sample sentence as per my requirement.Please provide Regular expression for the following sentence. Bold ones will vary depending on condition.

"You will lose £100.10 of bonus money if you continue to withdraw. You have to meet the some requirements. The requirement is 1001. Are you sure you want to continue?"

Thanks,
Vijay


RE: Regular Expression for sentences - Ankur - 03-19-2009

"You will lose £[0-9]{3}\.[0-9]{2} of bonus money if you continue to withdraw. You have to meet the some requirements. The requirement is [0-9]{4}. Are you sure you want to continue\?"


RE: Regular Expression for sentences - dvkbabu - 03-26-2009

Can you give Regular Expression for whole sentence??. I have used the following
\w+\s+\w+\s+\w+\?$
but its not working. (I am using above sentence as 'Regular Expression' in Recovery Scenario Wizard for Window Text)

Vijay