Datasheet

Metacharacters - Line separators
^ - start of line
$ - end of line
\A - start of text
\Z - end of text
. - any character in line
Examples:
^PORTA - matches string ' PORTA ' only if it's at the beginning of line
PORTA$ - matches string ' PORTA ' only if it's at the end of line
^PORTA$ - matches string ' PORTA ' only if it's the only string in line
PORT.r - matches strings like 'PORTA', 'PORTB', 'PORT1' and so on
The "
^" metacharacter by default is only guaranteed to match beginning of the input
string/text, and the "
$" metacharacter only at the end. Embedded line separators will
not be matched by "
^" or "$".
You may, however, wish to treat a string as a multi-line buffer, such that the "^" will
match after any line separator within the string, and "$" will match before any line
separator.
Regular expressons works with line separators as recommended at
www.unicode.org ( http://www.unicode.org/unicode/reports/tr18/ ):
Metacharacters - Predefined classes
\w - an alphanumeric character (including "_")
\W - a nonalphanumeric
\d - a numeric character
\D - a non-numeric
\s - any space (same as [\t\n\r\f])
\S - a non space
You may use \w, \d and \s within custom character classes.
Example:
routi\de - matches strings like 'routi1e', 'routi6e' and so on, but not
'routine', 'routime' and so on.
71
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Environment
mikroC PRO for AVR
CHAPTER 2