Which regex flavor is this?
JavaScript (ECMAScript), the same as Node.js and all modern browsers. Most patterns also work in Python, PHP and Java.
Developer Tools
Test regular expressions live with highlighted matches, groups and replace.
2 matches
| # | Match | Position | Groups |
|---|---|---|---|
| 1 | ana@example.com | 8 | |
| 2 | ben.lee+news@mail.example.org | 128 |
Uses JavaScript regular expressions, the same as Node.js and every modern browser. Runs in your browser.
Type a regular expression, or start from a quick pattern like Email or URL.
Paste the text you want to search. Matches light up as you type.
See each match with its groups, and try a replacement with $1 and $2.
JavaScript (ECMAScript), the same as Node.js and all modern browsers. Most patterns also work in Python, PHP and Java.
Turn on Multi-line and use ^ and $, which then match at the start and end of every line.
It finds all matches instead of stopping at the first one.
Wrap part of the pattern in brackets, then use $1, $2 in the replace box.
JPG, PNG, and WebP all store images, but picking the wrong one gives you blurry photos, huge files, or lost transparency. Here is exactly when to use each, in plain English.
Read guide →A large PDF is a pain to email or upload, but most compressors either barely shrink it or turn your crisp text into a blurry mess. Here is how to reduce PDF file size while keeping it looking clean.
Read guide →Combining several PDFs into one file used to mean paid software or uploading private documents to a stranger server. Here is the faster, safer way to merge PDF files for free.
Read guide →