maxdraco

Regular expression (regex)

A compact pattern language for finding text of a given shape, such as any run of digits.

Concept Programming and AI Data formats

A regular expression, or regex, describes a pattern of text rather than exact words: for example, “the word key, then a space, then any run of letters and digits”. Programs use them to search, check and rewrite text, from checking a form field to finding secrets in logs. Most languages and tools support them, but each has its own dialect, so a regex written for one tool may need adjusting before it works in another.

See also

  • Redaction Removing or masking secrets and personal details before text is stored or shared.
  • AI Artificial intelligence: software that performs tasks usually thought to need human judgement.
  • API A defined way for one program to ask another for data or actions.
  • Endpoint (route) One specific address on a web service that a program can call to do one job.
  • Environment variable A named setting a running program inherits from whatever started it.
  • Exit code The number a program hands back when it finishes: zero for success, anything else for failure.
  • Git Free software that records every change to a set of files, used to keep the history of most software projects.
  • GraphQL A query language for APIs in which the client asks for exactly the data it wants in one request.

Sources

  1. Regular Expressions (POSIX Base Definitions, chapter 9)The Open Groupofficial healthy, checked 2026-11-15 archived copy
  2. Regular expressionWikipedia healthy, checked 2026-11-15