Posts by Tiago D Teixeira Villagram • 1 point
1 post
-
-1
votes4
answers721
viewsA: How to replace with ' ' ' character with Regexp?
var texto = "assets/pdf/regulamento_Oi_Mod.pdf assets/images/oi-mod-tela-controle-2x.gif"; texto.replace(/\/((?=pdf|images)pdf|images)\//g, "\\/$1\\/") console.log(texto);