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);
} } }
Related Scripts with Example Source Code in same category :