How can I allow only specific Text TO any numbers

Can anyone tell me how to allow numbers with specific text?

Example
CAPL1234567
CAPL1234875

I’m not quite sure what are you trying to do but, if I got it right, you need: