Find matches and capture groups
regex.openverbs.com
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.
- Category
- Service
- Networks
- Base
- Starting price
- $0.004
- Paid calls, 30 days
- 8
Paid endpoints
4 endpoints, sorted by usage. Prices are per request.
| Endpoint | Price | Network | Facilitator | Calls / 30d |
|---|---|---|---|---|
POST/v1/match 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. | $0.004 | Base | Coinbase CDP | 2 |
POST/v1/replace 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. | $0.004 | Base | Coinbase CDP | 2 |
POST/v1/split 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. | $0.004 | Base | Coinbase CDP | 2 |
POST/v1/test 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. | $0.004 | Base | Coinbase CDP | 2 |
Is this your project? Suggest an edit.