Answers for "python check if line == regex"

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 "python check if line == regex"

Python Answers by Framework

Browse Popular Code Answers by Language