Home / Servers / Text Toolkit / regex_test

Regex test

An MCP tool from the Text Toolkit server, hosted on mcp.hjlabs.in.

Check whether a regular expression matches a text at all, and show the first match. Also reports whether the pattern is valid, so use it to validate a pattern before using it elsewhere.

Name on the gateway: text__regex_test · read-only.

Parameters

NameTypeDescription
pattern requiredstringThe regular expression, without slashes.
text requiredstringText to test against.
flagsstringFlags from i, m, s, u. Default none.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "text__regex_test",
  "arguments": {
    "pattern": "…",
    "text": "…"
  }
}

Or connect the Text Toolkit server directly, which lists 43 tools including this one:

Run in your terminal
claude mcp add --transport http hj-text https://mcp.hjlabs.in/mcp/text \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the regex test tool with pattern set to ….

More from Text Toolkit