Which input does this pattern match?
/^\d{2,4}$/
- "2024"
- "12345"
- "7"
- "12a"
{2,4} requires between two and four digits, and the anchors forbid anything else./^\d{2,4}$/
{2,4} requires between two and four digits, and the anchors forbid anything else.