Answers for "how to know a string matches regular expression in python"

1

check string equal with regular expression python

import re
pattern = re.compile("^([A-Z][0-9]+)+$")
pattern.match(string)
Posted by: Guest on May-10-2020

Code answers related to "how to know a string matches regular expression in python"

Python Answers by Framework

Browse Popular Code Answers by Language