Technical Support Contact Us   

PC Access for Windows Reference Guide

for PC Access for Windows 4.30.158


Script Command: Wildcard Matching

You may use wildcard character sequences in the "string" parameter of the on and wait commands. Wildcard character sequences allow you to specify one string that can match multiple incoming strings from the host. The wildcard character sequences are:

^? Matches any character
^# Matches any numeric character or space
^| Matches any of multiple characters

You may mix these wildcard character sequences with ordinary character strings in any combination.

Example:

// This wait command would match any four digit number:
wait for "^#^#^#^#";
// This wait command would match any two characters followed by 
// the letters "XYZ":
wait for "^?^?XYZ";
// This wait command would match any of the three following strings
// from the host:
//   Hello A There
//   Hello B There
//   Hello C There
wait for "Hello A^|B^|C There"

Back to script command list.


Home Contents Previous Next

[Contents (Javascript menu format)] [Contents (HTML format)] [Search] [Glossary]


Tell me more about this site.
Can't find what you need? See: How to Find It.
Contact us
Report a problem with this page or suggest an improvement for this page.

Last modification date: Friday, January 17, 2003 00:58:55

 

Copyright © 2005 - MFM Software, Inc.
11988 Tramway Drive
Cincinnati, OH 45241
Phone: 513.733.9229
Fax: 513.733.8775
Send comments to webmaster@mfm.com