Developer

Regex Generator

Build regex from example text, no syntax.

Click a highlighted part to change how it matches. Grey parts match literally.

This free regex generator builds a regular expression from your own example text — no syntax to memorize. Paste a sample line and it auto-recognizes the dates, times, IP addresses, emails, URLs, UUIDs, numbers and words inside it. Click any highlighted part to switch how it matches or lock it as literal text, and the pattern assembles live. Turn on named capture groups, anchor the match, test it against your own text, and copy ready-to-run code for JavaScript, Python, PHP, Java, Go or C#.

Related tools