Check if string matches pattern September 15, 2022 by Tarik import re pattern = re.compile("^([A-Z][0-9]+)+$") pattern.match(string)