Ver Mensaje Individual
  #8 (permalink)  
Antiguo 17/11/2015, 06:06
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 9 meses
Puntos: 1012
Respuesta: Consulta rapida sobre expresiones regulares

es sencillo
Cita:
var txt = '[URL name="Aqui va cualquiera cosa"]enlace[/URL]' +
'un texto cualquiera' +
'[yotube]enlace[/yotube]' +
'otro texto cualquiera' +
'[img]enlace[/img]';

console.log(txt.replace(/\[[^\]]+\]/gi, ' '));
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}