AI engineering glossary · Command line Git

What is regular expression?

Regular expression (also called Regex): A compact pattern language for matching text, using symbols such as . for any character, * for repetition and [0-9] for a digit class. Shell tools, editors and programming languages use it to find, validate and extract text.

Level: intermediateTopic: Command line Git

Regular expression: an example

The pattern ^[0-9]{6}$ matches exactly six digits, such as an Indian PIN code like 560001.

Related terms

More Command line Git terms

Where you learn it

Regular expression is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.