Definition
A regular expression describes a text-matching pattern for searching, extracting, replacing, or validating strings.
Usage and related concepts
Patterns can specify character sets, repetition, and positions. Syntax varies between implementations. Regular expressions work well for structured text operations; they are not a substitute for understanding natural-language meaning.