This is the regex I would use: ^-?\d{1,3}(?:\.\d{3})*(?:,\d+)?$ Regular expression visualization. Debuggex Demo. And this is a code example ...
確定! 回上一頁