comparing regex to string python 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)