[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

23. Regular Expressions

This page is a reference guide of the regular expression commands and escaped characters.

Each character matches itself, unless it is one of the special characters +?.*^$(){[|\. The special meaning of these characters can be escaped by using a \.

 
------+----
.     | Matches any character but now new line.
------+----
(...) | Groups a series of pattern elements into a single
      | element. The text the groups matches is captured for
      | later use.
------+----
^     | Matches the beginning of a line.
------+----
$     | Matches the end of the line.
------+----
[...] | Denotes a class of characters to match
------+----
[^..] | Negates a class of characters to match
------+----
...|  | Matches the alternatives from left to right until
      | one succeeds
------+----

See also:

 
See section 19. Search And Replace.
See section 21. Find/Replace In Files.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated on March, 18 2002 using texi2html