What is regular expression for Decimal,Amount,CustomDecimal datatype required for validation ?
My xml records contains few values in string format with data types as Decimal,Amount,CustomDecimal datatype .
I am using GWT celltable : EditTextCell Parsed xml set to cells in table. Now I want to validate that cell with related data type.
Values in string format so I want to match that with regular expression
Following is my criteria for regular expression for different datatype:
Integer Can have a maximum scale of 8. ==> (-)?(\d){1,8}
Decimal The number can be represented as (p,s) where p is the precision and s is the scale and then describe everything with respect to precision and scale. Can have a maximum scale of 8 and a maximum precision of 31. The non-fractional part of the number can have a maximum of 23 digits. --> ?
Amount This can have a maximum scale of 8 and a maximum precision of 31. --> ?
Custom Decimal The number can be represented as (p,s) where p is the precision and s is the scale and then describe everything with respect to precision and scale. Use Custom Decimal if you need to store decimals that have more than eight digits in the fractional part. Can have a maximum scale of 29 and a maximum precision of 30. The non-fractional part of the number can have a maximum of 29 digits. --> ?
Any help or guidance in this matter would be appreciated.