如何从字符串中提取带小数(点和逗号)的数字(例如1,120.01)?我有一个正则表达式,但似乎不能用逗号
preg_match('/([0-9]+\.[0-9]+)/', $s, $matches);
php regex
php ×1
regex ×1