I'm trying to decipher the meaning of this regular expression. Can anyone help?
"^[A-Z]{3}-[4-7]\d{2,4}\$$"
My understanding is that it must start with exactly 3 uppercase letters and end with a sequence of 2, 3, or 4 digits (although I am unsure about the double $ symbols at the end).
What confuses me is:
-[4-7]
Also, why are there 2 $ signs at the end?
Any clarification would be appreciated. Thank you!