(gawk.info)Regexp Patterns
Regular Expressions as Patterns
-------------------------------
We have been using regular expressions as patterns since our early
examples. This kind of pattern is simply a regexp constant in the
pattern part of a rule. Its meaning is `$0 ~ /PATTERN/'. The pattern
matches when the input record matches the regexp. For example:
/foo|bar|baz/ { buzzwords++ }
END { print buzzwords, "buzzwords seen" }
Next: Expression Patterns Prev: Kinds of Patterns Up: Pattern Overview
[ Dokumentation lokal installierter Software ]