The regular expression: "^\d{1,3}-\d{1,3}$" works for onetime pattern i.e. "400-900" but the regular expression with ? is not working for the repetition i.e. "^\d{1,3}-\d{1,3}$?" is not identifying the string "499-999,0-99".
Any suggestions, what the regular expression be?