Nevermind Apparently there are flags like adding the g for global. :) Thanks
var pattern:RegExp = /</g; -----Original Message----- From: TS [mailto:[email protected]] Sent: Thursday, March 26, 2009 3:33 PM To: 'Flash Coders List' Subject: Using replace function to replace all occurences not just one? I want to replace all occurrences of the "<" with "[LT]" not just one var removed:String = "<hell></HELLO>"; var pattern:RegExp = /</; removed = removed.replace(pattern, "[LT]"); Can someone point me in the right direction? Thanks, T _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

