PMDF System Manager's Guide


Previous Contents Index


TEST/MATCH-Test a mapping wildcard pattern

Test a mapping wildcard pattern.

Syntax

PMDF TEST/MATCH

Command Qualifiers Defaults
None. None.

restrictions

None.

prompts

Pattern: mapping-pattern
Target: target-string

Parameters

None.

Description

TEST/MATCH may be used to test wildcard and glob matching, such as in a mapping pattern.

When invoked, TEST/MATCH prompts for a pattern and then for a target string to compare against the pattern, and will output whether or not the target string matched and if it did match, which characters in the target string matched which wildcard or glob of the pattern. TEST/MATCH will loop, prompting for input, until exitted with a CTRL/Z.


EXAMPLES

In the following example, the sample mapping pattern $[ax1]*@*.example.com is tested for several sample target strings.


$ PMDF TEST/MATCH
Pattern: $[ax1]*@*.example.com
  [  1S] cglob [1ax] 
  [  2] "@" 
  [  3S] glob, req 109, reps 2 
  [  4] "." 
  [  5] "a" 
  [  6] "c" 
  [  7] "m" 
  [  8] "e" 
  [  9] "." 
  [ 10] "c" 
  [ 11] "o" 
  [ 12] "m" 
Target: xx11a@sys1.example.com
Match. 
0 - xx11a 
1 - sys1 
Pattern: $[ax1]*@*.example.com
  [  1S] cglob [1ax] 
  [  2] "@" 
  [  3S] glob, req 109, reps 2 
  [  4] "." 
  [  5] "a" 
  [  6] "c" 
  [  7] "m" 
  [  8] "e" 
  [  9] "." 
  [ 10] "c" 
  [ 11] "o" 
  [ 12] "m" 
Target: 12a@node.example.com
No match. 
Pattern: $[ax1]*@*.example.com
  [  1S] cglob [1ax] 
  [  2] "@" 
  [  3S] glob, req 109, reps 2 
  [  4] "." 
  [  5] "a" 
  [  6] "c" 
  [  7] "m" 
  [  8] "e" 
  [  9] "." 
  [ 10] "c" 
  [ 11] "o" 
  [ 12] "m" 
Target: 1xa@node.example.com
Match. 
0 - 1xa 
1 - node 
Pattern: ^Z
$ 


Previous Next Contents Index