Buscar y reemplazar
Busca y reemplaza texto con opciones de regex y distinción entre mayúsculas/minúsculas.
Acerca de buscar y reemplazar
Busca cualquier patrón de texto y reemplaza las apariciones al instante. Admite texto plano, coincidencia con distinción entre mayúsculas/minúsculas, límites de palabras completas y expresiones regulares completas de JavaScript.
Preguntas frecuentes
- ¿Puedo usar expresiones regulares?
- Sí. Marca la opción Regex e introduce cualquier expresión regular de JavaScript válida como término de búsqueda.
- ¿Qué hace la coincidencia de palabra completa?
- El modo de palabra completa solo coincide con el término de búsqueda cuando aparece como una palabra independiente, no como parte de una palabra más larga.
- ¿El reemplazo conserva el uso de mayúsculas/minúsculas?
- Los reemplazos usan exactamente la cadena que introduces en el campo Reemplazar. El uso de mayúsculas/minúsculas no se conserva automáticamente.
ACERCA DE ESTA HERRAMIENTA
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.
CÓMO USARLO
- Paste the text you want to edit into the input box.
- Type the term or pattern you want to find.
- Type the replacement text.
- Toggle case-sensitive matching or regex mode if needed.
- Review the updated text and copy the result.
CASOS DE USO COMUNES
- 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
CONSEJOS Y ERRORES COMUNES
- 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
MÁS PREGUNTAS
- 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.