Next: , Previous: , Up: Common Operators   [Contents][Index]

18.3.2 The Match-any-character Operator (.)

This operator matches any single printing or nonprinting character except it won’t match a:


if the syntax bit RE_DOT_NEWLINE isn’t set.


if the syntax bit RE_DOT_NOT_NULL is set.

The ‘.’ (period) character represents this operator. For example, ‘a.b’ matches any three-character string beginning with ‘a’ and ending with ‘b’.