STRMATCH Function

Matches a specified string to an existing regular expression.

Usage

Input Parameters

Output Parameters

Returned Value

Keywords

Discussion


NOTE: STRMATCH uses regular expressions, not wildcard characters, for pattern matching. To use STRMATCH, it is crucial that you understand regular expressions. For a detailed discussion of regular expressions, see the chapter Working with Text in the PV-WAVE Programmer's Guide.
Bit Value Function
0 1 If this bit is set, then `(' and `)' are used for grouping. Otherwise, `\(' and `\)' are used for grouping.
1 2 If this bit it set, then `|' is used as the OR operator. Otherwise, `\|' is used as the OR operator.
2 4 If this bit is set, then `\+' and `\?' are operators.Otherwise, `+' and `?' are operators.
3 8 If this bit is set, then `|' binds tighter than `^' and `$'. Otherwise, the opposite is true.
4 16 If this bit is set, then newline is treated as an OR operator. Otherwise, newline is treated as a normal character.
5 32 If this bit is set, then certain characters (`^', `$', `*', `+' and `?') only have special meaning in certain contexts. Otherwise, they always have their special meaning, regardless of the surrounding context.

Example 1




Example 2




Example 3



See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.