Kharabeesh
On-device ع

Regex Tester & Library

Test a regular expression on your text with live match and group highlighting, plus replace, split, extract to CSV, an escape helper and a library of ready patterns (Saudi mobile, IBAN, email…).

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Type the pattern (or paste it as /…/gi) and choose flags.
  2. Paste your text: matches are highlighted and groups are listed in a table.
  3. Use the tabs to replace, split, extract to CSV, or escape text to match it literally.
  4. Pick a ready pattern from the Library and adjust it.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

Which regex flavour is used?

Your browser’s own JavaScript (ECMAScript) engine, with flags g i m s u y, named groups (?<name>…) and lookbehind. PCRE-only syntax such as inline (?i) or \A does not work.

What if the pattern hangs?

Each run happens in a separate worker with a 1.5-second budget. If it takes longer, it is stopped and you are told the pattern is too slow (usually catastrophic backtracking like (a+)+).

Do library patterns validate the number?

No, they check the shape only. For example, the IBAN pattern does not compute the check digits and the ID pattern does not confirm a real ID.

Is my text saved or sent?

No. Everything stays in your browser.

Related tools