For regex, use the preg_match()

And a pattern like this might work:
Code:
/^[0-9][0-9\.,]*(k|b|m)?$/i
That is the first character should be a digit. Then followed by digits or dots or commas, for zero or more times. Then followed by "k" or "b" or "m" or nothing.

Am not good in regex. Maybe you'll get a better pattern than this.

Example:
PHP Code:
$num "100,1230.0m";
$pattern "/^[0-9][0-9\.,]*(k|b|m)?$/i";
if (
preg_match($pattern$num)) {
    echo 
"Correct form";
} else {
    echo 
"Incorrect form";

Hope it helps