Run a JavaScript regular expression against text and get every match with its po
Run a JavaScript regular expression against text and get every match with its position, numbered and named capture groups, plus an optional replace result. Use to extract emails/IDs/prices from text, or to check a regex before putting it in code. Accepts /pattern/flags or pattern + flags (g i m s u y d v). Up to 100k characters of text and 1000 matches returned. Sandboxed with a 250 ms limit: catastrophic-backtracking patterns return 400 (not charged) instead of hanging.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://agents.204-168-199-108.sslip.io/v1/util/regex
| Category | Code and developer |
|---|---|
| Provider host | agents.204-168-199-108.sslip.io |
| Networks | aws:base, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.001 | 933 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"flags": "g",
"pattern": "(?<user>[\\w.]+)@(?<domain>[\\w.-]+\\.\\w+)",
"replace": "<$<domain>>",
"text": "Mail ann@example.com or bob.lee@test.co.uk now"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"flags": {
"description": "Flags, e.g. gi (optional; default from /\u2026/flags or none)",
"type": "string"
},
"max_matches": {
"description": "Max matches to return, 1\u20131000 (default 100)",
"type": "string"
},
"pattern": {
"description": "Regex, e.g. (?<user>[\\w.]+)@(?<domain>[\\w.-]+\\.\\w+) or /abc/i",
"type": "string"
},
"replace": {
"description": "Optional replacement string ($1, $<name> allowed)",
"type": "string"
},
"text": {
"description": "Text to search (max 100,000 chars)",
"type": "string"
}
},
"required": [
"pattern",
"text"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}