The pattern
$test = preg_match('/^(?=.\d)\d(?:\.\d\d)?$/', $_float1);
matches
0.25 2.55 1253.36 45.55
How to modify this to accept a comma in between the integer part? such as 1,253.36?
Aucun commentaire:
Enregistrer un commentaire