python if strtitng matches regex code example
Example: check string equal with regular expression python
import re
pattern = re.compile("^([A-Z][0-9]+)+$")
pattern.match(string)
import re
pattern = re.compile("^([A-Z][0-9]+)+$")
pattern.match(string)