The follow tests should result 1 for every one.
                                trace( (/@/g).exec("A@").index); //1
                                trace( (/@/g).exec("Á@").index); //2
                                trace( (/@/g).exec("´@").index); //2
                                trace( (/@/g).exec("¨@").index); //2

But some special chars like "acute;" (accents in Brazilian words)  are
considered as two chars, not one.

I test with  RegExp.test and String.search and all works as expected.

Why that? A Flash Player Bug?

_______________________________________________
[email protected]
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