QTP Forums

Full Version: Regular Expression check point
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So i am forced to use standard check point to check a sentence in a text area ( Cause when i use text checkpoint or text area checkpoint, i get error in QTP to saying operation cannot be performed ). Below is my case

Unwanted line with numbers and characters
Unwanted line with numbers and characters
NEED to check line
Unwanted line with numbers and characters
Unwanted line with numbers and characters

I used the below

\w
\w
Need to check line
\w
\w

with regular expression checked in the checkpoint, the test case is still failing

can anyone help to tell me how to ignore all other lines and pay attention to 3rd line
(11-26-2009 11:22 PM)Mayoo Wrote: [ -> ]So i am forced to use standard check point to check a sentence in a text area ( Cause when i use text checkpoint or text area checkpoint, i get error in QTP to saying operation cannot be performed ). Below is my case

Unwanted line with numbers and characters
Unwanted line with numbers and characters
NEED to check line
Unwanted line with numbers and characters
Unwanted line with numbers and characters

I used the below

\w
\w
Need to check line
\w
\w

with regular expression checked in the checkpoint, the test case is still failing

can anyone help to tell me how to ignore all other lines and pay attention to 3rd line

Nevermind i got it .. it

.*Need to check line.*
Reference URL's