Regular Expression to match “CP” followed by 3-5 digits

regex

What will be the regular expression to accept 'CP123' First two letters CP and other 3 or 4 or 5 nos.

Best Solution

CP[0-9]{3,5}