A regular expression is a pattern used to match text. . matches any character, * means "zero or more of the previous token", + means "one or more", and \d matches a digit. Combine these building blocks to match emails, phone numbers, or validate input formats.

Paste a pattern and test string into our Regex Tester to see matches highlighted live as you type.

Share this article: Twitter LinkedIn Email

Looking for a tool to try out what you just read? Browse the full tools catalog.