dev
Test a JavaScript regular expression against input text.
Test a JavaScript regular expression against input text. POST { pattern, flags?, input }. Returns each match with its index, numbered capture groups, and named groups (up to 1000 matches with the g flag). Pure compute, no upstream.
post/api/dev/regex-test
Request
- Base URL: https://2s.io
- URL: https://2s.io/api/dev/regex-test
- Auth: API key in header PAYMENT-SIGNATURE
Query parameters
trial1
Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.
Request body
Response
(unresolved $ref)
Changes
No recorded changes to this operation across all 1 revision of this API.