{"x402Version":2,"name":"Regular Expressions","description":"ReDoS-safe regular expressions powered by RE2 — test, find matches with numbered and named capture groups, replace, and split. RE2 guarantees linear-time evaluation, so untrusted patterns can never cause catastrophic backtracking.","version":"0.1.0","openapi":"https://regex.openverbs.com/openapi.json","resources":[{"url":"https://regex.openverbs.com/v1/test","method":"POST","description":"Test whether a RE2 pattern matches anywhere in the input. Returns { matched }. RE2 guarantees linear-time evaluation, so this is safe against catastrophic backtracking. An invalid pattern is a clean 400; no match is a successful 200.","tags":["test regex","regex match boolean","check pattern match","re2 test api","validate regular expression match","safe regex test"],"accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.004","payTo":"0xb3f4de103F34b99f0Da19B4F16D6B53a14C2194A","asset":"USDC"}]},{"url":"https://regex.openverbs.com/v1/match","method":"POST","description":"Find the first match (or all matches with all=true) of a RE2 pattern, returning each match's text, start/end offsets, and numbered and named capture groups. No match is a successful 200 with an empty match list.","tags":["find regex matches","regex capture groups","extract pattern matches","named group lookup","re2 match api","regular expression search"],"accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.004","payTo":"0xb3f4de103F34b99f0Da19B4F16D6B53a14C2194A","asset":"USDC"}]},{"url":"https://regex.openverbs.com/v1/replace","method":"POST","description":"Replace matches of a RE2 pattern with a replacement string. Replaces all matches by default (set all=false for first-only). The replacement may reference capture groups with $1, $2 or ${name}. Returns the resulting string.","tags":["regex replace","replace pattern matches","regular expression substitution","capture group replacement","re2 replace api","safe regex replace"],"accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.004","payTo":"0xb3f4de103F34b99f0Da19B4F16D6B53a14C2194A","asset":"USDC"}]},{"url":"https://regex.openverbs.com/v1/split","method":"POST","description":"Split the input into parts on each match of a RE2 pattern. An optional limit caps the number of parts (0 = unlimited). Returns the parts array and its count.","tags":["regex split","split by pattern","regular expression delimiter","re2 split api","tokenize text with regex","split text safely"],"accepts":[{"scheme":"exact","network":"eip155:8453","price":"$0.004","payTo":"0xb3f4de103F34b99f0Da19B4F16D6B53a14C2194A","asset":"USDC"}]}]}