replace
Publicado por Celso Goya 30/06/2003
[ Hits: 10.502 ]
Homepage: [Algum aURL]
Substitui caractéres ou substrings em um string. Muito útil para substituir caractéres especiais durante a passagem de parâmetros.
/* www.moinho.net Replace strings Substitui strings Fucntion: replace Return : string replaced Retorno : string com substituições e-mail : celso.goya@moinho.net Author : Celso Goya Instructions If you have any questions about the functionality or sugestions please send us a report. Instruções Se você tiver qualquer dúvida ou sugestão sobre a funcionalidade desta função por favor envie-nos um e-mail */ function replace( texto, procurar, novo ){ len = procurar.length; pos = texto.indexOf(procurar); while (pos > -1){ parte1 = texto.substring(0, pos); parte2 = texto.substring(pos + len , texto.length); texto = parte1 + novo + parte2; pos = texto.indexOf(procurar); } return texto; }
JSOO - Classe para manipular Querystring
Tabela paginada e com diferenciação de cor nas linhas
Como gerar um podcast a partir de um livro em PDF
Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Como Instalar o Microsoft Teams no Linux Ubuntu
Músicas de Andrew Hulshult no DOOM (WAD)
Instalar o Apache, MySQL e PHP no Oracle Linux 8
Bloqueando telemetria no Deepin 23.1
Como converter imagens PNG/JPEG para SVG em linha de comando