The dot character matches "any character", so that the regex "12.0" will
match "12-0", "12x0", "12P0" etc.
If you want to match the "dot" itself, you have to escape it, i.e. "12\.0".

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Feb 9, 2009 at 1:54 AM, Manu Dhanda <manuraj.dha...@gmail.com>wrote:

>
> The problem is:
> I am trying to filter an arraycollection(labels) against the text. Using a
> filter function and in there I am trying to use RegExp.
>
> More specifically, whenever I enter a text like 12.0, it returns me results
> with "-" character as well like 12-0 etc.
>
> So I want that whenever I enter "." in my search, it should only return me
> results with "." and NOT "-" and vice-versa.
>
> Thanks,
> Manu.
>
>

Reply via email to