Elyoxe Tools

Tools / Code

Regex tester

Type the pattern and the text to see matches highlighted as you type, each match's groups, and the replace result. Ready-made patterns too: UAE mobile, Emirates ID, email, links and Arabic letters.

Your file never leaves your device — everything runs in your browser

Pattern
//g
Flags
Matches

    How to use it

    1. Type the pattern, or pick a ready one.
    2. Pick the flags (g, i, m, s, u) and paste the text.
    3. See the matches and groups, and try a replacement if you like.

    Questions

    Which regex engine?

    Your browser's JavaScript engine (ECMAScript). Most syntax is the same in Python, Java and PHP, with small differences such as Python's (?P<name>).

    How do I match Arabic letters?

    Use the range [\u0600-\u06FF], or with the u flag \p{Script=Arabic}. Note that \w doesn't match Arabic in JavaScript.

    What does each flag do?

    g: all matches, not just the first. i: ignore case. m: ^ and $ per line. s: the dot matches newlines too. u: full Unicode.

    Is my text uploaded?

    No, all the testing happens in your browser.