Localizar e substituir texto
Localize e substitua texto literal ou uma expressão regular.
Localizar e substituir texto
Type or paste to update the result automatically.
Your result appears here
Type, paste, or use an example. Copy your result when it is ready.
Como utilizar Localizar e substituir texto
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.
- Escreva ou cole o seu texto, ou carregue um exemplo.
- Altere as definições básicas ou abra o modo avançado para ajustar o resultado.
- Verifique e copie ou descarregue o resultado. Coloque os resultados em direto em pausa para executar manualmente. Textos ou definições individuais com mais de 20,000 caracteres exigem uma execução explícita.
O que esta ferramenta permite
Localize e substitua texto literal ou uma expressão regular.
- Localizar
- Set this value for your task.
- Substituir por
- Set this value for your task.
- Utilizar expressão regular
- Set this value for your task.
- Distinguir maiúsculas de minúsculas
- Set this value for your task.
Limites e processamento
As operações de texto geralmente aceitam até 2,000,000 caracteres. Cada analisador, gerador ou fórmula aplica limites adicionais apresentados nos respetivos controlos.
Exemplo de entrada
Hello world. A second line. Café, İstanbul, 日本語, and 👨👩👧👦.
Perguntas frequentes
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 é processado o meu texto?
Esta operação processa o texto no seu navegador. Copiar e descarregar exigem uma ação explícita; o texto introduzido não é guardado numa conta nem no histórico.
Quais são os limites de entrada?
As operações de texto geralmente aceitam até 2,000,000 caracteres. Cada analisador, gerador ou fórmula aplica limites adicionais apresentados nos respetivos controlos.