# Buscar y sustituir texto

> Busca y sustituye texto literal o una expresión regular.

[Open tool](https://www.toolcabana.com/es/replace-text) · [Texto y redacción](https://www.toolcabana.com/es/category/text-and-writing)

Tool ID: replace-text. Requested language: es. Description language: es. Complete guide translation: yes.

## Overview (en)

Find and Replace Text swaps every occurrence of a word or phrase in your text for the replacement you enter. Matching is case-sensitive by default and treats the search as literal text. Switch on Use regular expression to search with a JavaScript pattern and reuse captured groups in the replacement, or leave Replace with empty to delete every match.

## Supported tasks (es)

Busca y sustituye texto literal o una expresión regular.

## Steps (es)

1. Escribe o pega tu fuente, o carga un ejemplo.
2. Cambia los ajustes básicos o abre el modo avanzado para afinar el resultado.
3. Revisa y copia o descarga tu resultado. Pausa los resultados en vivo para ejecutar manualmente. Las fuentes o ajustes individuales de más de 20,000 caracteres requieren una ejecución explícita.

## Settings

- Buscar (es; key: find; type: text)
- Sustituir por (es; key: replacement; type: text)
- Usar expresión regular (es; key: regex; type: checkbox)
- Distinguir mayúsculas (es; key: caseSensitive; type: checkbox)

## Limitations (es)

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

## Example input

```text
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.
```

## Privacy and connections (es)

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

## Questions (es)

### How do I use capture groups in a regex find and replace?

Enable Use regular expression, wrap parts of the pattern in parentheses and refer to them as $1, $2 and so on in Replace with. For example, the pattern (\d+)-(\d+) with the replacement $2-$1 swaps the two numbers.

### Is find and replace case-sensitive?

Match case is on by default, so Apple will not match apple. Turn it off to replace every capitalization variant. In literal mode, special characters such as dots or brackets in the search text are matched exactly as written.

### Why does my regular expression stop with an execution limit error?

Regular expressions run in a separate worker and are stopped after 750 milliseconds so the page does not hang. Patterns with heavy backtracking can hit this limit. Regex mode also accepts up to 500,000 characters of input and a 2,000-character pattern.

### ¿Dónde se procesa mi entrada?

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

### ¿Cuáles son los límites de entrada?

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

## Related tools

- [Reverse text](https://www.toolcabana.com/es/reverse-text)
- [Text difference checker](https://www.toolcabana.com/es/text-diff)
- [Bold Unicode text](https://www.toolcabana.com/es/bold-text)
- [Italic Unicode text](https://www.toolcabana.com/es/italic-text)
