What a regular expression is
A regular expression is a pattern that describes a set of strings. Instead of searching for one fixed word you describe its shape - four digits, then a hyphen, then two digits - and the engine finds every piece of text with that shape. Regular expressions are built into almost every editor, language and command-line tool.



