← Market

Regex · Replace

Replace regular expression matches in text, with an optional max-replacement count.

POST https://x402.agentindex.world/regex/replace

0.001 USDC on Base · payTo 0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.001 USDC · payTo 0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d · via cdp · settles direct
{
  "pattern": "\\s+",
  "replacement": " ",
  "text": "too   many    spaces"
}
{
  "replacements": 2,
  "result": "too many spaces"
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust score72 / 100 · breakdown
Probe uptime (30d)100.0% over 1 probes · daily
Avg 402 latency371 ms
Paid calls (30d, on-chain)26 calls · 6 buyers · shared price cohort of 61
Facilitator-reported (30d)1 calls · 1 payers (CDP Bazaar)

How to call

POST https://x402.agentindex.world/regex/replace · input in body · spec from live-challenge

Input schema
{
  "properties": {
    "pattern": {
      "title": "Pattern",
      "type": "string"
    },
    "text": {
      "title": "Text",
      "type": "string"
    },
    "replacement": {
      "title": "Replacement",
      "type": "string"
    },
    "count": {
      "default": 0,
      "title": "Count",
      "type": "integer"
    }
  },
  "required": [
    "pattern",
    "text",
    "replacement"
  ],
  "title": "RegexReplaceInput",
  "type": "object"
}
Output schema
{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    },
    "replacements": {
      "title": "Replacements",
      "type": "integer"
    }
  },
  "required": [
    "result",
    "replacements"
  ],
  "title": "RegexReplaceOutput"
}
curl -i -X POST 'https://x402.agentindex.world/regex/replace' \
  -H 'content-type: application/json' -d '{"pattern":"\\s+","text":"too   many    spaces","replacement":" "}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)