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
| Name | Type | Description |
|---|---|---|
pattern required | string | The regular expression, without slashes. |
text required | string | Text to test against. |
flags | string | Flags 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:
{
"name": "text__regex_test",
"arguments": {
"pattern": "…",
"text": "…"
}
}Or connect the Text Toolkit server directly, which lists 43 tools including this one:
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 ….