Syntax:
$[mr,regexp,string]
In this transformation, NMAKE32 will return those words in string which match the regular expression specified by regexp. The matching is case-insensitive.
The following expressions match a single character:
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³c ³Any ordinary character, other than one of the³
³ ³special pattern-matching characters, matches ³
³ ³itself. ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³. ³A period (.) matches any single character. ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³[string] ³A string enclosed in square brackets matches ³
³ ³any one character in the string ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³[.-.] ³A range is two characters separated by a dash³
³ ³and enclosed in square brackets. It matches ³
³ ³any character that is within the range. ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³[^string] ³A string (or range) enclosed in square ³
³ ³brackets and preceded by a caret (^) matches ³
³ ³any character except for the character in the³
³ ³string (or range). Strings and ranges may be ³
³ ³combined as needed, as in: [a-m0-9xyz], which³
³ ³matches a thru m, 0 thru 9, x, y, or, z. ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³\c ³The backslash (\) character followed by any ³
³ ³character matches that character. This is ³
³ ³useful for matching the following special ³
³ ³characters; . *{ } ^ \ ³
³ ³The dollar ($) sign must be preceded by a ³
³ ³caret (^) character so it will not be ³
³ ³interpreted as a macro. The characters [, ], ³
³ ³and comma (,) cannot be used in pattern ³
³ ³matching. ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
The single-character expressions can be combined into regular expressions as follows:
A regular expression can be restricted to match text that begins on the first character of the string, ends on the last character of the string, or both, as follows:
Example:
This example is the same as the filename pattern matching example, but the pattern is written as a regular expression:
$[mr,.*\.c,x.c a.h b.h c.h]
returns:
x.c