我希望用户只输入0-9并且只输入一次"."
patt = /[^0-9(.{1})]/ 1.2222 -> true 1.2.2 -> false (only once '.')
帮帮我,谢谢!
php regex
php ×1
regex ×1