← Back to directory

Find and replace in text (literal or linear-time RE2 regex) (Tanod)

https://tanod.dev/v1/text/replace

Overview

The text with `find` replaced: literally, or as a regular expression on RE2 only (linear time for any pattern: no backtracking, so no ReDoS; backreferences and lookaround are refused), with \1 / \g<name> in the replacement; at most `max_replacements` (`limit_reached` reported). Body: `{"text": "Order 123 shipped; order 456 pending", "find": "(?i)order (\\d+)", "replace": "#\\1", "mode": "regex"}`. A pattern RE2 cannot compile is a 422 invalid_pattern (not charged). Price: USD

Protocol x402 (POST)
Price $0.0010
Payment Asset USD Coin
Payment Network eip155:8453
Category ai/text
Provider tanod
Source bazaar
Indexed 2026-10-07 22:29:17

Health

Status healthy
Latency (p50) 439ms
Uptime (30d) 97.0%
Reliability Score 93.5/100
Last Checked 2026-10-31 07:04:38
Last Healthy 2026-10-31 07:04:38
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "find": "(?i)order (\\d+)", "mode": "regex", "replace": "#\\1", "text": "Order 123 shipped; order 456 pending" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "engine": "RE2 (google-re2 1.1.20251105)", "limit_reached": false, "mode": "regex", "replacements": 2, "text": "#123 shipped; #456 pending" }, "type": "json" }