Skip to content
benchline
ToolsMCPAbout
benchline

82 tools for people who ship the web. 70 run entirely in your browser. No account, no upload.

All tools operational

Tools

All toolsllms.txt generatorAI SEO checkerOG image generatorJWT decoder

Categories

All categoriesDeveloperData & FormatsSEO & AI SearchImage & MediaPDF & Documents

For agents

MCP setupAI accessllms.txtllms-full.txtOpenAPI

Benchline

AboutFounderPrivacyGitHubSitemap

benchline

© 2026 Benchline. Built by Waseem Anjum. MIT licensed.Built for the browser, callable over MCP.
  1. Tools
  2. Developer
  3. Regex
  4. Regex tester

Regex tester

Test a JavaScript pattern, read the groups, and preview a replacement.

Runs in your browser
Use via MCP

MCP

Use this tool from your agent

Add the server once, then ask for the job in plain words. No key.

Setup guideAll MCP tools

Tool name

test_regex

Endpoint

https://benchline.fabwaseem.com/mcp
Auth
None
Rate
60 / min
  1. 1Add the server config for your client.
  2. 2Ask your agent to run test_regex, or describe the job.
  3. 3Or send the tools/call request yourself.
~/.cursor/mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/call requestjson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "test_regex",
7 "arguments": {
8 "pattern": "example",
9 "flags": "",
10 "text": "example"
11 }
12 }
13}

Next

Related tools

  • JSON formatterPretty-print, minify, and validate JSON, with the exact line and column when it fails.JSONMCPNew
  • SQL formatterFormat SQL for PostgreSQL, MySQL, BigQuery, Snowflake, and other dialects.SQLMCPNew
  • Base64 codecEncode and decode Base64 for text or a file, including the URL-safe alphabet.EncodingMCPNew
  • Cron expression builderBuild or paste a cron schedule, read it in plain English, and see the next run times.CronMCPNew

Guide

How it works

Free JavaScript regex tester. Set flags, see every match and capture group, read a short explanation of the pattern, and preview a replacement. The match list is exact, which is what an agent needs when a model guesses.
  1. 1Enter a patternType the pattern without slashes. Turn on the flags you need.
  2. 2Paste a sampleMatches are marked in the sample. Each row lists the index and the groups.
  3. 3Preview a replacementLeave the replacement empty to skip it. $1 and $<name> work as they do in JavaScript.

FAQ

Questions people ask

Pattern

g
i
m
s
u
v
d
Sampleplaintext
1
2
Order A12
Order Beta 7 and Gamma 42

Optional. $1 and $<name> follow JavaScript.

Matches

Order A12 Order Beta 7 and Gamma 42

  • Beta 7at 16
    1: Beta · 2: 7 · word: Beta
  • Gamma 42at 27
    1: Gamma · 2: 42 · word: Gamma

Explanation

  1. Named group word
  2. One or more:
  3. Any character in a set
  4. One or more:
  5. Whitespace
  6. Capture group 2
  7. One or more:
  8. A digit
2 matches