First page Back Continue Last page Overview Graphics
Metacharacter reform
- ( ) * + ? | \ do not change
- . matches any character, including newline
- New: <...> and :
A space is now <sp>
- [...] denotes a non-capturing group
[a-z] is now <[a-z]>, [[:alpha:]] is <alpha>
- {...} are closure delimiters
A range is now <n,m>
- Variables can be bound from within the match
$foo =~ /	 $x := (.*)
				 @y := [(\S+) \s+]*
				 %z := [(\S+) \: (\S+) \s+]* /