Validation

Regex Tester

Run PCRE-compatible patterns against sample content and inspect the match output as structured JSON.

INFO POST /regex/test Open API docs
Enter the pattern without delimiters.
Optional flags like i, m, s, or u.
Paste the text you want to test against the pattern.
Example

Input sample

Pattern: \bdev\b, Flags: i, Subject: SLOXLYDEV builds developer tools.
Example

Output sample

{
    "matched": true,
    "match_count": 1,
    "pattern": "\\bdev\\b",
    "flags": "i",
    "matches": [
        {
            "full_match": "DEV",
            "groups": []
        }
    ]
}
API usage

Integration notes

Send pattern, flags, and subject fields to the endpoint. The response includes match metadata and normalized match groups.

FAQ

Common questions

Which regex engine is used?
The tester uses PHP PCRE behavior, so results align with server-side matching in a PHP stack.