tool.ren

Regex Tester

Debug regular expressions locally in the browser with flags, match highlighting, capture groups, named groups, and replacement preview.

Regular expression

Enter the pattern without wrapping slashes.

Matched

Test text

Paste logs, API responses, or plain text. Matches are highlighted on the right.

3 / 81

Match highlight

Shows matches live with the current flags.

3
GET /api/users?id=42 200 18ms POST /api/login 401 33ms GET /assets/app.js 304 4ms

Rule library

Save useful patterns, replacements, flags, test text, and test cases for one-click restore and validation later.

0 rules
0 results
0 selected

Pattern insights

Detects the current pattern structure, capabilities, and possible risks.

2

Capture groups

Info

4 capture groups were detected for export, replacement, and downstream processing.

Alternation branches

Info

| branches were detected. A broad branch placed first can consume text before later branches are tried.

Performance risk

Combines static risk checks with a lightweight benchmark.

Not tested

A lightweight performance test will run after the page finishes loading.

Token explanation

Breaks down key pattern segments in order.

25 tokens
(Group0-1

Starts a capturing group that can be referenced in matches and replacements.

GETLiteral1-4

Matches this text literally.

|Branch4-5

Branch matching: either side may satisfy the pattern.

POSTLiteral5-9

Matches this text literally.

)Group9-10

Ends the current group.

\sEscape10-12

Matches one whitespace character.

+Quantifier12-13

Repeats the previous segment one or more times.

(Group13-14

Starts a capturing group that can be referenced in matches and replacements.

\/Escape14-16

Matches an escaped special character or control sequence.

\SEscape16-18

Matches one non-whitespace character.

+Quantifier18-19

Repeats the previous segment one or more times.

)Group19-20

Ends the current group.

\sEscape20-22

Matches one whitespace character.

+Quantifier22-23

Repeats the previous segment one or more times.

(Group23-24

Starts a capturing group that can be referenced in matches and replacements.

\dEscape24-26

Matches one digit character.

{3}Quantifier26-29

Repeats the previous segment according to {3}.

)Group29-30

Ends the current group.

\sEscape30-32

Matches one whitespace character.

+Quantifier32-33

Repeats the previous segment one or more times.

(Group33-34

Starts a capturing group that can be referenced in matches and replacements.

\dEscape34-36

Matches one digit character.

+Quantifier36-37

Repeats the previous segment one or more times.

msLiteral37-39

Matches this text literally.

)Group39-40

Ends the current group.

Match details

12 capture groups detected.

3

#1 · 0-29

Start line 1, column 1End line 1, column 30

GET /api/users?id=42 200 18ms

Group 1

GET

Group 2

/api/users?id=42

Group 3

200

Group 4

18ms

#2 · 30-54

Start line 2, column 1End line 2, column 25

POST /api/login 401 33ms

Group 1

POST

Group 2

/api/login

Group 3

401

Group 4

33ms

#3 · 55-81

Start line 3, column 1End line 3, column 27

GET /assets/app.js 304 4ms

Group 1

GET

Group 2

/assets/app.js

Group 3

304

Group 4

4ms

Replacement preview

Supports $1, $2, and named group references.

3 changed linesChars +15

After checking the preview, write the replacement result back to the input.

Preview result

GET /api/users?id=42 -> 200 (18ms)
POST /api/login -> 401 (33ms)
GET /assets/app.js -> 304 (4ms)

Replacement diff

Shows only changed lines. Red is before, green is after.

3
Line 1

Before

GET /api/users?id=42 200 18ms

After

GET /api/users?id=42 -> 200 (18ms)

Line 2

Before

POST /api/login 401 33ms

After

POST /api/login -> 401 (33ms)

Line 3

Before

GET /assets/app.js 304 4ms

After

GET /assets/app.js -> 304 (4ms)

Test cases

Save multiple inputs and expected match counts, then validate the current regex in one run.

0 cases

When expected matches is blank, the current match count is used.

Pass rate

0%

Passed

0

Failed

0

Blocked

0

Capabilities

Live matching
Capture groups
Replacement preview
Local processing

Use cases

Debug log extraction rules
Validate form input patterns
Clean up text formats in batches

About Regex Tester

Test matches, groups, and replacement output. Debug regular expressions locally in the browser with flags, match highlighting, capture groups, named groups, and replacement preview. The core workflow is designed to run in your current browser.

Key capabilities

  • Live matching
  • Capture groups
  • Replacement preview
  • Local processing

Useful for

  • Debug log extraction rules
  • Validate form input patterns
  • Clean up text formats in batches

Frequently asked questions

Is Regex Tester free to use online?

Yes. Regex Tester opens in a modern browser and does not require desktop software installation.

What is Regex Tester useful for?

Common use cases include Debug log extraction rules; Validate form input patterns.

Is my input or file uploaded?

The core processing workflow is designed to run locally in the browser. Key capabilities include Live matching, Capture groups, Replacement preview; account, comments, and anonymous analytics may still create normal site requests.

Comments

0 comments

Sign in to comment
AAccount

Sign in to comment and reply.

Sign in
No comments yet. Be the first to leave feedback.

ToolRen Online Toolkit © 2026