FileConverterPro

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 group
a|bAlternation (a or b)
(?=...)Positive lookahead
(?<=...)Positive lookbehind

How to use Regex Generator

  1. 1. Enter a pattern. Type a regular expression or pick one from the common patterns library.
  2. 2. Set flags. Toggle global, case-insensitive, multiline, or dotAll flags.
  3. 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

Advertisement