In plain language
It describes the shape of text, such as “an order number like ORD-12345”, so a workflow can pull it out or check it.
Example
The pattern ORD-\d{5} extracts an order number from a customer email subject line.
Related terms
Parsing · Formatter · Data Validation · Filter
Common misconception
A regex is not a reliable way to parse structured formats such as JSON or HTML; use a real parser for those.
Implementation guidance
Keep patterns simple, test against real samples including edge cases, anchor patterns when validating, and document what each pattern matches.