Aller au contenu principal

Regular Expression Tester

The Regular Expression Tester evaluates regex patterns against input text and displays matches in a sortable data grid with capture groups.

:::info Screenshot needed — light/dark 📸 regex-tester-light.png and regex-tester-dark.png — Regex tester with pattern, input text, and results grid showing matches :::

Interface​

ElementDescription
Regular Expression:Textbox for the regex pattern (for example (\w+)@(\w+\.\w+))
Text to analyze:Multi-line editor for the text to search
Result:Sortable data grid with one row per match
EvaluateAccent-colored button to run the regex
Error areaRed error text for invalid patterns or no-match results

Evaluating a Pattern​

  1. Enter the regex pattern in the Regular Expression: textbox
  2. Paste or type the test text in the Text to analyze: editor
  3. Click Evaluate
  4. Results appear in the data grid below

The Load Example button pre-fills the pattern (\w+)@(\w+\.\w+) and a sample text. It disappears once you start editing the pattern or the text.

Results Grid​

Each row represents one match of the pattern in the input text:

ColumnContent
MatchesMatch number (1-based index)
ValueThe full matched text (Group 0)
Group1First capture group
Group2Second capture group
…Additional capture groups as columns

Columns are auto-generated based on the number of capture groups in your pattern.

Match Highlighting​

Click any row in the results grid to highlight the corresponding match in the test text editor. The selection jumps to the match position and selects the matched text.

Error Messages​

MessageCause
Syntax Error: …The regex pattern is invalid (unbalanced parentheses, bad quantifier, etc.)
The given expression does not match anythingThe pattern is valid but finds no matches in the input

See Also​