Regex currency validation
问题 I need Help for currency regex in jQuery function. It optionally allows \"$\" sign only one time in beginning. It allows comma as digital-group-separator, but not in the beginning or the end. It allows only 2 digits rounded after decimal point. It allows only one decimal point and not in the beginning or the end. Valid: $1,530,602.24 1,530,602.24 Invalid: $1,666.24$ ,1,666,88, 1.6.66,6 .1555. I tried /^\\$?[0-9][0-9,]*[0-9]\\.?[0-9]{0,2}$/i ; it works fine except it matches 1,6,999 . 回答1: The