package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var reCase:RegExp = new RegExp("shoot|crud|darn", "gi");
var sVal = new String("Shoot! More darn regular expression crud!");
var sRepl = sVal.replace(reCase, "%#@$");
trace(sRepl);
}
}
}