Need to check an attribute value format for decimal value : I need to validate an attribute value for the decimal format check.
If the value is having 4 numbers before the decimal value (like 1234.12) print fail and if (123.23) it will pass.

Please help me.