Datasheet

Metacharacters - Subexpressions
The bracketing construct ( ... ) may also be used for define regular subexpres-
sions. Subexpressions are numbered based on the left to right order of their open-
ing parenthesis. First subexpression has number '1'
Examples:
(int){8,10} matches strings which contain 8, 9 or 10 instances of the
'int'
routi([0-9]|a+)e
matches 'routi0e', 'routi1e' , 'routine',
'routinne', 'routinnne' etc.
Metacharacters - Backreferences
Metacharacters \1 through \9 are interpreted as backreferences. \ matches previ-
ously matched subexpression #.
Examples:
(.)\1+ matches 'aaaa' and 'cc'.
(.+)\1+ matches 'abab' and '123123'
(['"]?)(\d+)\1
matches "13" (in double quotes), or '4' (in single quotes)
or 77 (without quotes) etc
74
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Environment
mikroC PRO for AVR
CHAPTER 2