Regex validation question

Hi,

I'm trying to create a regex expression to validate text input. The correct input should be a series of 7 characters -- the 3 initial characters should be alphabetical (capitalization does not matter) and 4 following characters numerical. Eg, XXX0000. Could someone help me with constructing the regex expression to validate the user's input?

Thanks!

I'd definitely recommend using an online regex tester to work out this sort of thing, such as https://regex101.com. I believe this should do what you're asking for:

^[a-zA-Z]{3}\d{4}$