โ All tools
Free ยท JavaScript ยท Runs in your browser
Regex Builder & Tester
Generate a starter pattern for common frontend validation, edit it, test sample text, and see what each part means. Nothing you type is sent to the server.
Advertisement
Ad banner placement
1. Generate or edit a pattern
//
2. Understand the pattern
Use in JavaScript
Regex is useful for quick format checks, but it does not replace server-side validation. Email and URL patterns cannot prove that an address or page really exists.
3. Test some text
Matched text
No matches yet.
Regex quick guide
^Start of the text
$End of the text
\dA digit from 0 to 9
\wA letter, digit, or underscore
+One or more of the previous item
{3,16}Between 3 and 16 repetitions
[A-Z]Any uppercase English letter
(a|b)Either option a or option b