updated regex to accept integers and decimals