{"slug":"api-vextorium-com-v1-regex-test-2102df","title":"Test a regular expression against a text","host":"api.vextorium.com","method":"POST","resource":"https://api.vextorium.com/v1/regex-test","category":"code","description":"Test a regular expression against a text: every match with position, groups and named groups, plus the result of a substitution if you pass a replacement. Flags i, m, s, x. Time-limited, safe against catastrophic backtracking.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":325,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:10","eip155:5042","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"pattern":"(?P<user>\\w+)@(?P<dom>[\\w.]+)","text":"ana@x.com y luis@y.org"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"flags":{"type":"string"},"max_matches":{"type":"integer"},"pattern":{"type":"string"},"replacement":{"type":"string"},"text":{"type":"string"}},"required":["pattern","text"]},"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":{"properties":{"coincidencias":{"items":{"properties":{"end":{"type":["null","number"]},"groups":{"items":{"type":["null","string"]},"type":["array","null"]},"named_groups":{"properties":{"dom":{"type":["null","string"]},"user":{"type":["null","string"]}},"type":["null","object"]},"start":{"type":["null","number"]},"text":{"type":["null","string"]}},"type":["null","object"]},"type":["array","null"]},"defined_groups":{"type":["number","null"]},"flags":{},"group_names":{"items":{"type":["null","string"]},"type":["array","null"]},"matches":{"type":["boolean","null"]},"num_matches":{"type":["number","null"]},"pattern":{"type":["string","null"]},"substitution_result":{}},"type":["object","null"]},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":325,"error":null}],"description_full":"Test a regular expression against a text: every match with position, groups and named groups, plus the result of a substitution if you pass a replacement. Flags i, m, s, x. Time-limited, safe against catastrophic backtracking.","last_updated":"2026-10-03T21:32:40.453Z","schemes":["exact"]}