I know this might sound as really dummy question, but I\'m trying to ensure that the provided string is of a number / decimal format to use it later on with PHP\'s number_fo
Another way to get only the numbers in a regex string is as shown below:
$output = preg_replace("/\D+/", "", $input);