You've forgotten to add a ? at the end, before the $ . A better way of doing it would be the following: /^\d+?\.?\d{0,2}$/.
確定! 回上一頁