ToolEmpire

Regex Generator

Generate regular expressions for email, phone, URL, dates, IPv4, ZIP, semver.

Inputs

Results

// email · flags: none
/^[^\s@]+@[^\s@]+\.[^\s@]+$/
// tests:
ada@example.com — match
dev+tag@sub.domain.co — match
ada@example — no match

About this tool

Pick a preset to get a copy-paste JavaScript regex with your chosen flags, plus three sample strings with live match results.

How to use

  1. 1Pick a preset: email, phone, URL, date, IPv4, ZIP, or semver.
  2. 2Pick the flags — none, i, m, or g+i.
  3. 3Optionally paste a custom pattern to override the preset; wrapping /.../ delimiters are stripped automatically.
  4. 4Copy the regex literal from the output and check the three test rows to see which sample strings match.

Frequently asked questions

Related tools