Jun-22-2019, 01:26 PM
Quote:re.search(pattern, string, flags=0)So the question is: if you print(mo) what value is shown?
Scan through string looking for the first location where the regular expression pattern produces a match, and return a corresponding match object. Return None if no position in the string matches the pattern; note that this is different from finding a zero-length match at some point in the string.