Pattern matching in QTP

Chris Sharman chris.sharman@ccagroup.co.uk
Thu, 25 Mar 2004 13:15:08 +0000


Robert Mills wrote:
> I need to restrict what values can be entered into a prompted for Global 
> Temporary. The user must be forced to enter an alpha (A-Z) followed by 5 
> alphanumeric (A-Z, 0-9).
> 
> Any suggestions on what match pattern I should use?
> 
> Note: The value will be upshifted on input into the Global Temporary.

"^(^|#)>" (if it's a length 6 temp)
"^(^|#)(^|#)(^|#)(^|#)(^|#) *" (more generally)

Chris


-----------------------------------------------------------------------

Any views expressed in this message are those of the sender and not
necessarily those of CCA Group.  The unauthorized use, disclosure,
copying or alteration of this message is forbidden.  The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed.  Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.