Regex patterns, explained

24 regular expressions worth knowing — what each one is for, how it works part by part, what it accepts and rejects, and where it will bite you. Open any of them in Rex to try it on your own text.

Validation

Is this string the shape it claims to be — an email, a URL, an IP address?

Text & extraction

Find, pull apart and clean up text: tags, links, quoted strings, repeated words.

Numbers

Integers, decimals, money — and the positions between digits.

Dates & times

Calendar dates, clock times, and the log lines they turn up in.

Have a pattern of your own?

Paste it into Rex to see what it matches, read it back in plain English, and find out whether its cost explodes as the text gets longer.

Open Rex