Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/11/2009, 20:17
elusuario_charaz
 
Fecha de Ingreso: junio-2009
Mensajes: 34
Antigüedad: 14 años, 11 meses
Puntos: 0
Respuesta: problema con expresiones regulares URGENTE

Hice esto:

Código:
var replaced = inner.replace(match, "<span style=\"background-color:yellow; font-weight:bold;\">" + lastMatch + "</span>");
document.getElementById("txt").innerHTML = replaced;
Pero me dice que lastMatch no esta definido :(.