| CARVIEW |
Select Language
HTTP/2 301
location: https://stevenlevithan.com/regexpal/
cache-control: max-age=600
expires: Sun, 18 Jan 2026 00:38:31 GMT
content-length: 244
content-type: text/html; charset=iso-8859-1
date: Sun, 18 Jan 2026 00:28:31 GMT
server: Apache
HTTP/2 200
last-modified: Sat, 18 May 2024 14:10:06 GMT
etag: "1b1b-618bb0678e305-gzip"
accept-ranges: bytes
cache-control: max-age=600
expires: Sun, 18 Jan 2026 00:38:31 GMT
vary: Accept-Encoding,User-Agent
content-encoding: gzip
content-length: 1942
content-type: text/html
date: Sun, 18 Jan 2026 00:28:31 GMT
server: Apache
Regex Tester: RegexPal
- (g)
- (i)
- (m)
- (s; via XRegExp)
- Quick Reference
- Options
JavaScript Regex Quick Reference
. |
Any character except newline. |
\. |
A period (and so on for \*, \(, \\, etc.) |
^ |
The start of the string. |
$ |
The end of the string. |
\d,\w,\s |
A digit, word character [A-Za-z0-9_], or whitespace. |
\D,\W,\S |
Anything except a digit, word character, or whitespace. |
[abc] |
Character a, b, or c. |
[a-z] |
a through z. |
[^abc] |
Any character except a, b, or c. |
aa|bb |
Either aa or bb. |
? |
Zero or one of the preceding element. |
* |
Zero or more of the preceding element. |
+ |
One or more of the preceding element. |
{n} |
Exactly n of the preceding element. |
{n,} |
n or more of the preceding element. |
{m,n} |
Between m and n of the preceding element. |
??,*?,+?,{n}?, etc. |
Same as above, but as few as possible. |
(expr) |
Capture expr for use with \1, etc. |
(?:expr) |
Non-capturing group. |
(?=expr) |
Followed by expr. |
(?!expr) |
Not followed by expr. |
Need more power? Get RegexBuddy, a powerful regex tester that inspired RegexPal.
© 2007 Steven Levithan. Powered by XRegExp and Regex Colorizer.