So, how can I exactly match "." OR "-" character correctly?
Guy Morton wrote:
>
> In regexp syntax, "." means "match any character"
>
> On 06/02/2009, at 1:37 PM, Manu Dhanda wrote:
>
>>
>> Hi Guyz,
>> I am having this particular issue and at the moment not able to come
>> out
>> with a solution.
>> Any help or direction to solution would be great.
>>
>> var someStr:String = "12-88";
>> var str:String = "12.88";
>> var bool:Boolean = someStr.match(new RegExp("str",'i');
>>
>> Here, the match returns true.
>> I don't understand why "-" is being matched to "." returning TRUE.
>>
>> -Manu.
>> --
>> View this message in context:
>> http://www.nabble.com/Flex-RegExp-issues-tp21865562p21865562.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>>
>
>
>
--
View this message in context:
http://www.nabble.com/Flex-RegExp-issues-tp21865562p21905239.html
Sent from the FlexCoders mailing list archive at Nabble.com.