Bitwise Calculator
AND, OR, XOR, shifts and rotates, at 8 to 64 bits, shown in binary.
Test a regular expression live, with every match and capture group shown.
The Regex Tester runs a pattern against your own text on every keystroke, highlighting matches in place and listing every capture group — with a guard against the catastrophic backtracking that can otherwise lock the page.
Type a pattern and it runs against your text on every keystroke, with matches highlighted in place so you can see exactly what is and is not being caught. Every match is also listed with its position and each of its capture groups.
Named groups are shown by name, which matters once a pattern has more than two of them and counting brackets stops being reliable. There is a replace mode that previews the result with $1 and named references working as they would in code, and a catastrophic-backtracking guard that stops a runaway pattern from locking the page — which is a real risk with nested quantifiers and the reason some regular expressions take down production servers.
Seeing what is caught inside the real text is far more useful than a list of strings out of context.
Once a pattern has three groups, counting brackets stops being reliable — so named groups are listed by their names.
$1 and named references behave exactly as they will in your code, so the replacement is checked rather than assumed.
A pattern like (a+)+b can take exponential time on near-matching input. The tester stops rather than freezing — which is also a real production risk worth knowing about.
What g, i, m, s and u each change, where you are turning them on.
Without the delimiters; the flags have their own controls.
Matches are highlighted in place as you type.
Every match lists its position and each capture group, named or numbered.
Preview the result with $1 and named references working as in code.
JavaScript, since it runs in your browser. It is close to PCRE for everyday patterns, but lookbehind, named groups and Unicode property escapes differ in support — and JavaScript has no possessive quantifiers or atomic groups.
It finds every match rather than stopping at the first. Without it, replace only replaces once and match returns a single result with its groups. It is the flag people forget most often.
A pattern with nested quantifiers, such as (a+)+b, can take exponential time on input that nearly matches. It is a genuine denial-of-service vector, and the tester guards against it rather than freezing.
The m flag makes ^ and $ match at each line rather than only at the ends of the string. The s flag makes the dot match newlines too. They are different things and are often both needed.
What people who use the Regex Tester think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Regex Tester. It takes half a minute and no account.
Write the first reviewAND, OR, XOR, shifts and rotates, at 8 to 64 bits, shown in binary.
Convert tab-separated data — or a spreadsheet paste — straight into JSON.
Fix broken JSON: trailing commas, single quotes, unquoted keys and comments.
Your screen size, viewport, pixel ratio and which breakpoint is active.
Verify a download by computing its SHA-256 without uploading it anywhere.
Turn an array of JSON records into INSERT statements, with an optional CREATE TABLE.
Generate serde-ready Rust structs from a sample JSON document.
Generate an MD5 hash of any text, with a straight answer about when not to.