Localizar e substituir texto
Localiza e substitui 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 usar 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.
- Digite ou cole sua fonte, ou carregue um exemplo.
- Altere as configurações básicas ou abra o modo avançado para refinar o resultado.
- 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.
O que esta ferramenta suporta
Localiza e substitui texto literal ou uma expressão regular.
- Localizar
- Set this value for your task.
- Substituir por
- Set this value for your task.
- Usar expressão regular
- Set this value for your task.
- Diferenciar maiúsculas e minúsculas
- Set this value for your task.
Limites e processamento
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.
Fonte de exemplo
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 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.