Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | misc | |
Tool | misc |
Note that [...]
matches any one of the enclosed characters. A
pair of characters separated by - matches any character lexically
between the pair, inclusive. If the first character following the
opening [
is a !, any character not enclosed is matched.
The following characters have a special meaning to the shell and cause termination of a word unless quoted:
; & ( ) | ^ < > newline space tab
A character may be quoted (that is, made to stand for
itself) by preceding it with a backslash (\
) or inserting it
between a pair of quote marks ('' or "").
For further definition of the syntax, see the UNIX man page for sh.
This is a simple syntax that suffices for many applications. If a more
capable matching syntax is needed, use the builtin regex capabilities
of Glish.
This is implemented entirely in Glish and not the gmisc client.
pattern | Pattern | ||
Allowed: | Any shell expression | ||
strings | Strings to be tested | ||
Allowed: | String |
- dms.patternmatch ('12**', "12345 89712 123 12 11") 12345 123 12