Reemplazar secuencia de escape en coffescript
Esto también te interesa!
PREGUNTAS SIMILARES
#3
function escape(s) {
return s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&') };
function replace_all(str, pattern, replacement){
return str.replace( new RegExp(escape(pattern), "g"),
replacement); } replace_all(my_text, "\x1b[33m", "Reemplazo")