<?php $value = 0; $regexp = '(-)?[0-9]+(\.[0-9][0-9]?)?'; preg_match($regexp, $value, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.