reduce the length of valid substring in a binary string 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)