Flex Force Decimal

Posted by babyangel86 on Stack Overflow See other posts from Stack Overflow or by babyangel86
Published on 2010-06-05T09:28:12Z Indexed on 2010/06/05 9:32 UTC
Read the original article Hit count: 380

Filed under:
|
|
|
|

Hi,

I'm looking for a regex or a way to format the NumberValidator so that only decimal places are allowed.

The domain="real" allows you to put integer values, but I need to force the user to but in 2.0 if they want an integer.

This is because they pass through a Castor mapping file, it complains if it gets an integer when it expects a decimal.

I dont want to restrict the number of decimal places, just insist that there must be a point, and a number after it.

Any help would be much appreciated.

© Stack Overflow or respective owner

Related posts about regex

Related posts about flex