Regex Tester

Test a bounded regular expression against text with a strict matching timeout and show match spans and capture groups.

Your workspace

Server processing

Review the example values, then run the tool.

This tool evaluates regular expressions against your provided text, identifying match spans and capture groups while enforcing a strict execution timeout.

How to test patterns

  1. Enter your regular expression pattern into the designated field.
  2. Paste the text you wish to analyze into the input area.
  3. Select optional flags like case-insensitivity or multiline mode to refine your search.

Understanding results

The tool returns a list of matches found within your text. Each entry includes the matched string, its starting and ending character positions, and any captured groups defined by your pattern.

Processing limits

To ensure stability, the tool enforces a 50,000-character input limit and a strict matching timeout. If a pattern is too complex or the text is too large, the operation may terminate early.

Basic pattern match

Pattern: \b\w{4}\b, Text: This is a sample text.

Matches for "This" and "text" with their respective character offsets.

Frequently asked questions

What happens if my regex takes too long?

The operation will stop and return an error if the matching process exceeds the strict time limit.

How many matches can the tool display?

The tool displays up to 1,000 individual matches found within the provided text.

Continue your workflow