Just change the pattern: public static var NON_NUMERIC_CHARACTERS_WITH_DECIMAL : String = "[^0-9|^.]+";
For the locales that require a comma, use replace(). -TH --- In [email protected], "flexcoder2008" <[EMAIL PROTECTED]> wrote: > > Thanks very much for those suggestions. The RegExUtil class is almost > perfect, except that it will strip out decimal places since they are > non-numeric characters. In the focus in/out events I am trying to > assign the numeric value of the TextInput's text property to the data > property minus the currency symbol and thousands separator. The > tricky part is the decimal place. The RegExUtil strip function will > remove the decimal place since it is a non-numeric character and so > the value saved to the .data property is wrong. The other thing to > consider is that for some locales, a comma is used for a decimal > point. So if we want to save this back to the database, the comma has > to be replaced with a period. > > This shouldn't be too hard though - I'll just use string functions to > find the decimal > character, then split the number into 2 parts, strip the extra > characters with the RegExUtil > function and then concatenate them back with a "." character to save to > the db. > > Thanks again. >

