Regex Visualizer & Tester

Test JavaScript regex with live highlighting. See railroad diagrams. Free, no signup.

/ /
Email URL Phone Hex color IPv4 Date ISO HTML tag

๐Ÿ“Š Railroad Diagram

Type a regex to see diagram
๐Ÿ“ข Advertisement

Common regex patterns

Email

[\w.+-]+@[\w-]+\.[\w.-]+

URL

https?://[\w.-]+

Phone (US)

\d{3}-\d{3}-\d{4}

Date YYYY-MM-DD

\d{4}-\d{2}-\d{2}

IPv4

\b\d{1,3}(\.\d{1,3}){3}\b

HTML tag

<(\w+).*?>
๐Ÿ“ข Advertisement