Appendix E. Regular Expressions

jEdit uses regular expressions to implement inexact search and replace. A regular expression consists of a string where some characters are given special meaning with regard to pattern matching.

Within a regular expression, the following characters have special meaning:

Positional Operators

One-Character Operators

Character Class Operator

Subexpressions and Backreferences

Branching (Alternation) Operator

Repeating Operators

These symbols operate on the previous atomic expression.

Stingy (Minimal) Matching

If a repeating operator (above) is immediately followed by a ?, the repeating operator will stop at the smallest number of repetitions that can complete the rest of the match.