The JavaScript exception "invalid range in character class" occurs when a character class in a Regular Expression uses a range, but the start of the range is greater than the end....character class in a regular expression uses a range, but the...SyntaxError: Invalid regular expression: /[2-1]/: Range out of...