Micro Focus QTP (UFT) Forums

Full Version: Regular Expression for sentences
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
"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\?"
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