Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

Regex Find and Replace Online

Search and replace with regular expressions — use capture groups like $1 to reorder text, anchors for whole lines, and several rules at once. Matches are highlighted as you type.

Mis à jour le
Result

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : Regex Replace

  1. Write the pattern in Find — Regex is already on.
  2. Use $1, $2 (or $<name>) in Replace to reuse captured text.
  3. Check the highlighted matches, then copy the result.

Capture groups in replacements

The preset turns ISO dates into day/month/year: (d{4})-(d{2})-(d{2}) → $3/$2/$1. Each pair of parentheses captures text you can put back in any order. Use $& for the whole match and for a new line.

With Regex on, ^ and $ match the start and end of every line. Test complex patterns first in the Regex Tester, or get a plain-English explanation from the Regex Explainer.

Aussi recherché comme : regex find and replace, replace with regex online, regex substitution, capture group replace, regular expression replace.

Outils complémentaires : Regex Replace

  • Find and Replace — Paste text and replace words or patterns — case-sensitive or not, whole words only, or with regular expressions and $1 capture groups.
  • Find and Replace in Files — Drop many files — code, CSV, Markdown, HTML, JSON — and apply the same find-and-replace rules to all of them.
  • Text Compare — Paste two versions of a text to see exactly what changed: added and removed lines and the changed words inside them, highlighted side by side or in one view.
  • Markdown Table Generator — Build a table in a spreadsheet-like editor — or paste cells from Excel, Google Sheets or CSV — set column alignment and get a neatly aligned Markdown table (GitHub-flavored) or clean HTML.

Questions fréquentes

How do I use capture groups in the replacement?
Wrap parts of the pattern in parentheses and refer to them as $1, $2 … in Replace. Named groups (?…) can be used as $.
Does ^ match each line?
Yes — multiline mode is on, so ^ and $ match at every line break.
Is my text uploaded?
No. Everything runs in your browser.
Puis-je installer Regex Replace en tant qu’application web et l’utiliser hors ligne ?
Oui. Regex Replace est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires