Test a JavaScript regular expression
Test a JavaScript regular expression. Send JSON: pattern, text, optional flags (d g i m s u y), replacement, max_matches (1-1000, default 100). Returns valid, matched, count, truncated, matches [{match,index,groups,named}], and replaced if you sent a replacement. An invalid pattern returns valid:false with the error. Runs are limited to 200 ms (422 on timeout). Max body 256 KB. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.
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
POST https://api.jagent.dev/v1/regex-test
| Category | Code and developer |
|---|---|
| Provider host | api.jagent.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"flags": "g",
"pattern": "(\\d+)-(\\d+)",
"text": "10-20 and 3-4"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {}
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}