If the only item changing in the string is the THRUSDAY or tempone, why not
split the string on "PARTY" then on "ALWAYS" and the variable would be in
the zero element of the second array?



On Thu, Apr 5, 2012 at 6:03 AM, Timon <[email protected]> wrote:

> Hi all,
>
>
> I have below string
> 23 RX TESTNAME G30 PARTY THRUSDAY ALWAYS
>
> in which Thrusday is dynamic it could by anything.
>
> I have created a regular expression to compare during runtime
>
> E.g. TestRegex = "\d+\sRX\sTESTNAME\w{3}\sPARTY"&tempone&"ALWAYS"
>
> here "tempone" is variable which i am populating it from external
> datasheet.
>
> but it gives me syntax error while running test case in QTP
>
> can anyone help me on this.
>
> Are we allowed to use variable in Regular expression or not?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>



-- 
Parke
Cell: 770-842-0121

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to