Free regex testing, matching, replacing, and splitting. No signup. No API key.
Test a regex pattern against a string. Returns all matches with groups and positions.
curl -X POST https://forge-node.tail2b516d.ts.net/regex/test \
-H "Content-Type: application/json" \
-d '{"pattern": "\\d+", "test_string": "abc 123 def 456", "flags": "i"}'
| Field | Type | Required | Description |
|---|---|---|---|
| pattern | string | Yes | Regex pattern |
| test_string | string | Yes | String to test against |
| flags | string | No | Flags: i (ignore case), m (multiline), s (dotall), x (verbose), a (ascii) |
| replacement | string | No | If provided, also returns the replaced string |
Split a string using a regex pattern.
curl -X POST https://forge-node.tail2b516d.ts.net/regex/split \
-H "Content-Type: application/json" \
-d '{"pattern": "[,;\\s]+", "test_string": "a, b; c d"}'
Library of 12 common regex patterns (email, URL, IP, phone, date, etc.).
curl https://forge-node.tail2b516d.ts.net/regex/patterns
| Flag | Name | Description |
|---|---|---|
| i | IGNORECASE | Case-insensitive matching |
| m | MULTILINE | ^ and $ match line boundaries |
| s | DOTALL | . matches newline characters |
| x | VERBOSE | Allow comments in pattern |
| a | ASCII | ASCII-only matching for \w, \d, etc. |
120 requests per minute per IP. No API key needed.