「。」の前だけ1~5桁にしたい。"." の後に 0 ~ 2 桁の数字。これは私が正規表現のためにこれまで持っているものです。
^\d{1,5}\.?\d{0,2}$
1.00 -- match
11.01 -- match
111.10 -- match
1111.52 -- match
11111.23 -- match
.12 -- no match ... want to match
123456 -- match ... don't want to match because can take up to 5 integers before decimal
1234567 -- match ... don't want to match because can take up to 5 integers before decimal
誰でも助けることができますか?