Regex API

Free regex testing, matching, replacing, and splitting. No signup. No API key.

Endpoints

POST /regex/test

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"}'
FieldTypeRequiredDescription
patternstringYesRegex pattern
test_stringstringYesString to test against
flagsstringNoFlags: i (ignore case), m (multiline), s (dotall), x (verbose), a (ascii)
replacementstringNoIf provided, also returns the replaced string

POST /regex/split

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"}'

GET /regex/patterns

Library of 12 common regex patterns (email, URL, IP, phone, date, etc.).

curl https://forge-node.tail2b516d.ts.net/regex/patterns

Flags

FlagNameDescription
iIGNORECASECase-insensitive matching
mMULTILINE^ and $ match line boundaries
sDOTALL. matches newline characters
xVERBOSEAllow comments in pattern
aASCIIASCII-only matching for \w, \d, etc.

Rate Limits

120 requests per minute per IP. No API key needed.

Every tool on this site stays free, with no signup and no key. The same workshop also publishes paid skill packs — The Forge Full Stack Bundle for Claude Code ($129) — and a free index of guides. Independent; not affiliated with Anthropic.