UTILYARD
tools / text

Rechercher et remplacer

Recherchez et remplacez du texte avec des options de regex et de sensibilité à la casse.

texte source

À propos de Rechercher et remplacer

Recherchez n'importe quel motif de texte et remplacez les occurrences instantanément. Prend en charge le texte brut, la correspondance sensible à la casse, les délimiteurs de mots entiers et les expressions régulières JavaScript complètes.

FAQ

Puis-je utiliser des expressions régulières ?
Oui. Cochez l'option Regex et saisissez n'importe quelle expression régulière JavaScript valide comme terme de recherche.
Que fait la correspondance par mot entier ?
Le mode mot entier ne correspond au terme recherché que lorsqu'il apparaît comme un mot autonome, et non comme une partie d'un mot plus long.
Le remplacement préserve-t-il la casse ?
Les remplacements utilisent la chaîne exacte que vous saisissez dans le champ Remplacer. La casse n'est pas automatiquement préservée.

À PROPOS DE CET OUTIL

Enter a search term and a replacement, paste in your text, and every matching instance gets swapped instantly, with optional case-sensitive matching and full regular expression support for more advanced patterns. Regex mode lets you match patterns like any digit, whitespace runs, or repeated characters instead of just literal text, which is useful for cleaning up inconsistent formatting in bulk. Writers use it to rename a character or term throughout a manuscript, developers use it to reformat data or swap variable names in a snippet, and anyone with a repetitive editing task can skip opening a full text editor. Because replacements happen live, you can adjust your search pattern and immediately see how many matches change across the whole text.

COMMENT UTILISER

  1. Paste the text you want to edit into the input box.
  2. Type the term or pattern you want to find.
  3. Type the replacement text.
  4. Toggle case-sensitive matching or regex mode if needed.
  5. Review the updated text and copy the result.

CAS D'USAGE COURANTS

  • A novelist renaming a character throughout an entire manuscript draft
  • A developer swapping an old variable or function name across a pasted code snippet
  • Someone standardizing inconsistent date formats in a spreadsheet export using a regex pattern
  • An editor removing extra spaces or fixing recurring typos across a document
  • A marketer updating a product name consistently across old copy before reposting it

CONSEILS ET ERREURS COURANTES

  • Without regex mode enabled, special characters like periods or parentheses in your search term are treated literally, not as pattern symbols
  • Case-sensitive mode means 'Apple' and 'apple' are treated as different searches, turn it off if you want to catch both
  • In regex mode, remember to escape characters that have special meaning, like a literal period, or your pattern may match more than intended
  • Test your pattern on a small sample first when using regex, since a too-broad pattern can replace text you didn't mean to touch

AUTRES QUESTIONS

What happens if my search term appears inside a longer word?
Without a word-boundary regex pattern, a plain text search matches the substring wherever it appears, so searching 'cat' would also match inside 'category' unless you use regex boundaries to restrict it.
Can I use capture groups to reorder matched text in regex mode?
If the tool supports standard regex replacement syntax, you can typically reference captured groups in the replacement field to rearrange or reuse parts of the match, similar to most programming language regex engines.
Does find and replace work across multiple lines?
Yes, since the whole pasted text is searched as one block, matches spanning different lines are found the same way as matches within a single line, though multiline-specific regex patterns may need the appropriate flag.
Why didn't my case-sensitive search find an obvious match?
If the casing in your search term doesn't exactly match the casing in the text and case-sensitive mode is on, the match is skipped entirely, double-check capitalization or switch the toggle off.

GUIDES ASSOCIÉS

Comment rechercher et remplacer du texte
Comment fonctionne la recherche et le remplacement, quand utiliser les regex, la sensibilité à la casse, les modèles courants et les conseils pour l'édition de texte en masse.
Lire →
Rechercher et remplacer — UtilYard