TEXT WORKSPACE

Regex Tester

Inspect bounded PCRE2 matches and byte positions.

Input is processed on this site only when you run the tool. The application does not save inputs or results.

WORKBENCH regex-tester Server

input.txt

Ln 1, Col 1UTF-8 bytes1 line

changed.txt

Ln 1, Col 1UTF-8 bytes1 line

Result result.json

A little clarity goes here.

Run the tool to see your result.

Awaiting a resultJSON
Ctrl ↵

Ready. Run explicitly; typing and pasting do not send requests.

UTF-8 text, at most 32768 bytes per input. Tab leaves the editor. Plain text disables syntax colors. Browser textareas may normalize line endings to LF.

A QUICK WALKTHROUGH

A familiar workflow,
with room to focus.

When to use Regex Tester

Try a bounded PCRE2 pattern against a small UTF-8 subject and inspect captures when building a server-side text matcher.

Read the result

Offsets are byte positions, not visible-character positions. Captures show null and -1 for unmatched groups; exhausting a work limit means the attempted match was not completed.

SEE IT IN PRACTICE

Worked examples

Sample input. A result you can inspect.

Match example

Pattern without delimiters

(?<word>\p{L}+)

Subject

Hello 東京 42
PCRE2 flags
Unicode

Expected result

{"count":2,"matches":[{"groups":[{"group":0,"text":"Hello","byteOffset":0},{"group":"word","text":"Hello","byteOffset":0},{"group":1,"text":"Hello","byteOffset":0}]},{"groups":[{"group":0,"text":"東京","byteOffset":6},{"group":"word","text":"東京","byteOffset":6},{"group":1,"text":"東京","byteOffset":6}]}]}

Formats, limits and common errors

Invalid patterns and exhausted limits return fixed errors, never compiler diagnostics or partial matches.

PCRE2 syntax and resource limits ↗ (opens in a new tab)

Find your tool

Use Tab or arrow keys to navigate

JSON Formatter & ValidatorJSONJSON MinifierJSONJSON CompareJSONURL Encoder / DecoderEncodingBase64 Encoder / DecoderEncodingHTML Entity Encoder / DecoderEncodingJWT DecoderSecurityHash GeneratorSecurityPassword GeneratorSecurityToken GeneratorSecurityWord & Character CounterTextUUID GeneratorUtilitiesUnix Timestamp ConverterUtilitiesXML to JSONJSONBcrypt Hash & VerifySecurityRegex TesterTextJSON to CSVJSONCSV to JSONJSONJSON Tree ViewerJSONCode & Text CompareTextURL ParserUtilitiesCron ExplainerUtilitiesColor ConverterUtilitiesJSONL ValidatorAI DevelopmentJSONL FormatterAI DevelopmentPrompt Template BuilderAI DevelopmentToken Count EstimatorAI DevelopmentText ChunkerAI DevelopmentRAG Chunking PreviewAI DevelopmentChat Messages JSON ValidatorAI DevelopmentAI Function / Tool Schema ValidatorAI DevelopmentPrompt Version ComparisonAI DevelopmentAI Request Payload FormatterAI Development