Re: [Flashcoders] regex issue when validating unicode range

2009-10-20 Thread Matt Muller
thanks for the insight there Juan :) Chat Skype: mattmuller MSN: matt_b_mul...@hotmail.com Contact Me [image: Linkedin] [image: Facebook] [image: Twitter] On Tue, Oct 20, 2009 at 3:57 AM,

Re: [Flashcoders] regex issue when validating unicode range

2009-10-19 Thread Juan Pablo Califano
Hi I don't think the regex is wrong. In fact, if you change u for a smaller number, it works fine. I have not tested each code point, mind you, but with a few tries, the highest max range that works that I could find is 0xFEFF. The range 0xFF00 - 0x apparently is reserved for control stuf

Re: [Flashcoders] regex issue when validating unicode range

2009-10-19 Thread Ktu
Have you tried looking at Grant Skinner's RegExp App? It might help http://gskinner.com/RegExr/ Ktu On Mon, Oct 19, 2009 at 1:24 PM, Matt Muller wrote: > Hi there, > > issue with regex when trying to test if a char is within a unicode range > > var testIsArabic:Boolean = /\u0627/.test(str.charAt

[Flashcoders] regex issue when validating unicode range

2009-10-19 Thread Matt Muller
Hi there, issue with regex when trying to test if a char is within a unicode range var testIsArabic:Boolean = /\u0627/.test(str.charAt(0)); // this works testing for arabic chars of unicode 0627 var testIsArabic:Boolean = /[\u0627-\u]/.test(str.charAt(0)); this range does not work, retu