Within square brackets, a period (.) that is not part of a [[.c.]] sequence, a colon (:) that is not part of a [[:class:]] sequence, and an equals sign (=) that is not part of a [[=c=]] sequence matches itself.
Table 6-8 shows examples of simple regular expressions.
Pattern | Definition |
---|---|
[[=a=]]bcd | any form of a followed by bcd |
[[.ch.]-e] | any element that collates between ch and e |
[[:lower:]] | any lower case letter |