Skip to content

Glossary: AI Security and Guardrails

Regular expression

Also written: regex, re.compile

A pattern language for matching text. It is used to find card numbers, emails, phone numbers and secrets for redaction, and to validate formats such as order IDs.

Where the book teaches it

Related terms

Redact