Regex Toolkit
## Overview The Regex Toolkit API provides 26 endpoints for testing, explaining, debugging, and generating regular expressions. Supports Python regex flavor with all flags. ## Key Features - **Pattern Testing**: Test regex against strings with detailed match output (groups, positions, named captures) - **Pattern Explanation**: Get human-readable breakdowns of complex regex patterns - **Format…
Regex Toolkit endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
Test regex — first match /test/match |
Test a regex pattern against input text. Returns the first match with position info and captured groups. |
| POST |
Test regex — all matches /test/match-all |
Find ALL non-overlapping matches of a regex in the input text. Returns each match with position, groups, and named groups. |
| POST |
Split text by regex /test/split |
Split input text using a regex pattern as the delimiter. Supports a maximum split count. |
| GET |
Check regex syntax validity /validate/pattern |
Check whether a regex string is syntactically valid. Returns True/False and an error message if invalid. |
| POST |
Validate text against a named pattern /validate/text |
Validate a single text string against one of the built-in named patterns (email, url, phone, ip, etc.). |
| POST |
Batch validate multiple texts /validate/batch |
Validate up to 500 texts against a single named pattern. Returns per-text results. |
| POST |
Validate text against a custom regex /validate/custom |
Validate a text against your own regex pattern (not from the library). |
| GET |
List all pattern categories /library/categories |
Return a list of all available pattern categories with their pattern counts. |
| GET |
List all patterns /library/patterns |
Return all patterns, optionally filtered by category. Does not include match/no-match examples to keep responses compact. |
| GET |
Get a specific pattern /library/pattern/{name} |
Return full details for a named pattern including match and no-match examples. |
| GET |
Search patterns by keyword /library/search |
Full-text search across pattern names, descriptions, and categories. Returns ranked results. |
| POST |
Extract all recognisable entities /extract/all |
Scan text for all recognisable entity types: email addresses, HTTP/HTTPS URLs, US phone numbers, IPv4 addresses, and ISO 8601 dates. Returns a map of entity type → matches. |
| POST |
Extract email addresses /extract/emails |
Extract all email addresses from the input text using the 'email_basic' pattern. |
| POST |
Extract URLs /extract/urls |
Extract all HTTP/HTTPS URLs from the input text. |
| POST |
Extract matches with a custom regex /extract/custom |
Extract all matches of your own regex pattern from the input text. Supports capture groups and named groups. Optionally include start/end positions. |
| POST |
Extract phone numbers /extract/phones |
Extract US/Canada phone numbers from the input text. |
| POST |
Extract IP addresses /extract/ips |
Extract IPv4 addresses from the input text. |
| POST |
Extract dates /extract/dates |
Extract ISO 8601 dates (YYYY-MM-DD) from the input text. |
| POST |
Find and replace with regex /replace/single |
Perform a single regex find-and-replace on the input text. Supports back-references (\1, \2) in the replacement string. |
| POST |
Batch find/replace /replace/batch |
Apply multiple find/replace operations to the text in sequence. Each operation receives the output of the previous one as input. |
| POST |
Replace with capture group template /replace/template |
Replace regex matches using a template that references capture groups. Use $1, $2 (or \1, \2) for positional groups, $name (or \g) for named groups. |
| POST |
Explain a regex pattern in plain English /explain |
Parse a regex pattern token by token and return a list of plain-English descriptions. Covers anchors, quantifiers, character classes, groups (capturing, non-capturing, named),… |
| POST |
Generate regex from match/no-match examples /generate/from-examples |
Given a set of strings that should match and optionally strings that should NOT match, infer one or more candidate regex patterns. Returns patterns with coverage scores. |
| POST |
Generate test strings that match a pattern /generate/test-strings |
Generate sample strings that match a given regex pattern. Uses a heuristic approach: checks the pattern against the built-in library for known examples, and synthesises… |
| GET |
API root / |
Return API metadata and available endpoint groups. |
| GET |
Health check /health |
Service liveness probe. |
Regex Toolkit pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| Pro | $9.99 / month | 20 / minute |
|
| Ultra | $29.99 / month | 100 / minute |
|