PRIVATE BROWSER TOOL
Regex Tester
Test patterns, flags, groups, and match positions. Nothing is uploaded.
PRIVATE BROWSER TOOL
Test patterns, flags, groups, and match positions. Nothing is uploaded.
TESTING TOOLS · LOCAL PROCESSING
The Regex Tester runs a JavaScript regular expression against your sample text, highlights each match, and lists match positions and captured groups. Patterns execute locally, making it convenient for testing logs, content, and multilingual input.
COMMON USES
THREE STEPS
PRIVACY
The operation runs on your device and does not require the input to be uploaded. Copy and download actions happen only when you choose them. Avoid treating encoded output as encryption, and follow your own security requirements for confidential data.
WORKED EXAMPLE
Pattern: hello
Flags: gi
Text: Hello, hello1. Hello · index 0
2. hello · index 7Case-insensitive matching finds both spellings. Match positions are zero-based JavaScript string indices measured in UTF-16 code units.
METHOD & LIMITS
The tester constructs a JavaScript RegExp, adds the global flag to collect matches, and displays matched text, positions, and capture groups.
JavaScript regex behavior can differ from PCRE, Python, or Java. Results stop at 500 matches, and expensive patterns can block the page; start with small samples.
References: JavaScript RegExp reference
PRACTICAL NOTES
Patterns follow the JavaScript RegExp behavior available in your current browser.
Pathological patterns can take a long time on some inputs, so test complex expressions with small representative samples first.