Lo que pasa es que no quiero poner esto:
Código Javascript
:
Ver originalvar BuscarExpresion = [/\bnew\b/g, /\bfor\b/g, /\bswitch\b/g, /\bcase\b/g, /\bsizeof\b/g, /\bpublic\b/g, /\breturn\b/g,
/\bif\b/g, /\belse\b/g, /\bwhile\b/g, /\btrue\b/g, /\bfalse\b/g, /\bdouble\b/g, /\btry\b/g, /\bvoid\b/g];
Texto = Texto.replaceArray(BuscarExpresion, ColorearExp);
Lo tengo así:
[HIGHLIGHT="Javascript"]
Código Javascript
:
Ver originalvar BuscarExpresion = [new, for, switch, case, sizeof, public, return,
if, else, while, true, false, double, try, void];
Texto = Texto.RemplazarArray(/\bBuscarExpresion\b/g, ColorearExp);
quiero usar las expresiones que está en allí junto a BuscarExpresion de una manera por decirlo así "simplificada", "RemplazarArray" es una función que hice.