# Localizar e substituir texto

> Localiza e substitui texto literal ou uma expressão regular.

[Open tool](https://www.toolcabana.com/pt-br/replace-text) · [Texto e redação](https://www.toolcabana.com/pt-br/category/text-and-writing)

Tool ID: replace-text. Requested language: pt-BR. Description language: pt-BR. 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 (pt-BR)

Localiza e substitui texto literal ou uma expressão regular.

## Steps (pt-BR)

1. Digite ou cole sua fonte, ou carregue um exemplo.
2. Altere as configurações básicas ou abra o modo avançado para refinar o resultado.
3. Revise e copie ou baixe seu resultado. Pause os resultados ao vivo para executar manualmente. Fontes ou configurações individuais acima de 20,000 caracteres exigem uma execução explícita.

## Settings

- Localizar (pt-BR; key: find; type: text)
- Substituir por (pt-BR; key: replacement; type: text)
- Usar expressão regular (pt-BR; key: regex; type: checkbox)
- Diferenciar maiúsculas e minúsculas (pt-BR; key: caseSensitive; type: checkbox)

## Limitations (pt-BR)

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

## Example input

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

## Privacy and connections (pt-BR)

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

## Questions (pt-BR)

### 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.

### Onde minha entrada é processada?

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

### Quais são os limites de entrada?

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

## Related tools

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