Thank you benny. I can see how this works, but why does my pattern(/[^ \\]'/) does not?

Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


On Jun 9, 2007, at 1:30 PM, Benny wrote:

var code:String = "alert('foo');";
code = code.replace(/'/g,"\\'");
trace(code);

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to