Modified regex pattern to allow decimal point.