Regex Generator
Build regular expressions with a visual helper online for free. Common patterns for emails, URLs, phones, dates, and more. Test instantly.
Runs entirely in your browser — files never uploaded
//g
Common Patterns
Regex Cheatsheet
.Any character (except newline)\dDigit [0-9]\wWord character [a-zA-Z0-9_]\sWhitespace^Start of string/line$End of string/line*0 or more+1 or more?0 or 1 (optional){n,m}Between n and m times[abc]Character set[^abc]Negated character set(abc)Capture group(?:abc)Non-capturing groupa|bAlternation (a or b)(?=...)Positive lookahead(?<=...)Positive lookbehindHow to use Regex Generator
- 1. Enter a pattern. Type a regular expression or pick one from the common patterns library.
- 2. Set flags. Toggle global, case-insensitive, multiline, or dotAll flags.
- 3. Test it. Paste your test string and see matches highlighted instantly with their positions.
FAQ
What regex flavor is used?
JavaScript's built-in RegExp engine, which follows the ECMAScript specification.
Is my data sent to a server?
No. Everything runs entirely in your browser. Nothing leaves your machine.
Can I use look-behind assertions?
Yes, as long as your browser supports them. All modern browsers do.
Related tools
- Base64 EncoderEncode text or files to Base64 or decode Base64 back online for free. Instant conversion, no signup, runs in your browser.
- JSON FormatterFormat and validate JSON online for free. Beautify with indentation, validate syntax, or minify. Runs in your browser, no signup.
- CSV ↔ JSONConvert CSV to JSON or JSON to CSV online for free. Live preview as you type or upload a file. No signup, runs in browser.
- Timestamp ConverterConvert Unix timestamps to dates and dates to timestamps online for free. Supports seconds, milliseconds, ISO 8601. No signup.
- JWT DecoderDecode JWT tokens online for free. Inspect header, payload, and claims. Verify expiration and signature algorithm. No signup, runs in browser.
- Regex TesterTest regular expressions online for free with live match highlighting, capture groups, and flag toggles. Supports JavaScript regex. No signup.
Advertisement