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
JSON Formatter
Format, beautify & validate JSON data.
Base64 Encoder / Decoder
Encode and decode Base64 text instantly.
URL Encoder / Decoder
Percent-encode and decode URLs safely.
Regex Tester
Test regular expressions with live match highlighting.
JWT Decoder
Decode JWT header and payload claims.
Timestamp Converter
Convert Unix timestamps to dates and back.