(gawk.info.gz) Regexp Patterns

Info Catalog (gawk.info.gz) Pattern Overview (gawk.info.gz) Expression Patterns
 
 7.1.1 Regular Expressions as Patterns
 -------------------------------------
 
 Regular expressions are one of the first kinds of patterns presented in
 this book.  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" }
 
Info Catalog (gawk.info.gz) Pattern Overview (gawk.info.gz) Expression Patterns
automatically generated by info2html