$Sir Wild: Difference between revisions
(Automatically generated page update) |
(Automatically generated page update) |
||
Line 40: | Line 40: | ||
<li>[[Janus Sockets]]</li> | <li>[[Janus Sockets]]</li> | ||
<li>[[Janus Web Server]]</li> | <li>[[Janus Web Server]]</li> | ||
<li> | <li>Japanese functions</li> | ||
<li>[http://m204wiki.rocketsoftware.com/images/4/4b/SirfieldNew.pdf Sir2000 Field Migration Facility]</li> | <li>[http://m204wiki.rocketsoftware.com/images/4/4b/SirfieldNew.pdf Sir2000 Field Migration Facility]</li> | ||
</ul> | </ul> | ||
[[Category:$Functions|$Sir_Wild]] | [[Category:$Functions|$Sir_Wild]] |
Revision as of 16:03, 8 July 2014
Test string against a wildcard string
Note: Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Sir_Wild function is the RegexMatch function.
$Sir_Wild indicates whether the one string matches a Sirius-style pattern where asterisk (*) matches any set of characters, question mark (?) matches any single character, and double-quotation mark (") indicates that the following character is to be treated as a literal even if it is one of the three special wildcard characters: * ? "
. $Sir_Wild takes two string arguments and returns either a 0 or 1.
The first argument is the string to be tested for a match. This is an optional argument and defaults to null.
The second argument is the string, possibly containing wildcards, against which the first argument is to be tested. This is an optional argument and defaults to null.
Syntax
%rc = $Sir_Wild([string], [wildcard])
%rc is set to 0 or 1.
Examples
$Sir_Wild returns either a 1 indicating that the first string matches the second or 0 otherwise. For example, this returns 1:
$Sir_Wild('Ahab', 'A*')
This returns 0:
$Sir_Wild('Starbuck', 'A*')
This returns 1:
$Sir_Wild('*LOOK', '"*LOO?')