hi,
Wie ich mit dem RegExp-Objekt jetzt allerdings noch ersetzen und nicht nur suchen kann, weiß ich noch nicht.
Du übergibst dein RegExp-Objekt einfach der replace-Methode eines String-Objektes als ersten Parameter:
var myRegEx = new RegExp(...);
var myData = "Hello World";
var newData = myData.replace(myRegEx, "whatever");
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }