Step 1
Enter a Pattern
Type a JavaScript regular expression and select the flags that match your use case.
Test JavaScript regular expressions locally with flags, match positions, named groups, replacement preview, and export.
Enter a replacement string to preview the transformed text.
The match inspector scans up to 100 matches. The global flag controls whether every match is collected. JavaScript regular expressions can be expensive on large inputs, so keep patterns and test text within the visible limits.
Local processing: ToolNara processing code keeps the working value in browser memory. It does not intentionally send the value to an application server.
No input telemetryEngineering guide
Debug regular expressions in the browser with JavaScript flags, named groups, replacement previews, and safe input limits.
Step 1
Type a JavaScript regular expression and select the flags that match your use case.
Step 2
Paste test text and review match values, positions, numbered groups, and named groups.
Step 3
Add a replacement string, inspect the preview, then copy or download the result.
Developer reference
Use these examples as implementation references. Check the runtime and test vectors before using them in production.
const pattern = /(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/g;
const source = 'Release 2026-09-25';
for (const match of source.matchAll(pattern)) {
console.log(match.groups);
}import re
match = re.search(r'(?P<year>\d{4})-(?P<month>\d{2})', 'Release 2026-09-25')
print(match.groupdict() if match else 'No match')No. The pattern, test text, match inspection, and replacement preview run inside your browser using the native RegExp API.
The tester exposes g, i, m, s, u, and y flags. The browser validates the final expression and reports invalid flag combinations.
A poorly designed pattern can consume significant CPU on a large input. The tester limits input and match inspection, but it cannot make an unsafe pattern safe.
developer
Beautify, validate, fix, and minify JSON data with instant syntax error highlighting.
developer
Encode and decode URLs, URIs, and percent-encoded parameters with space mode switching and query string table breakdown.
developer
Real-time GitHub Flavored Markdown (GFM) editor with live HTML preview, syntax highlighting, and export.