Scan through string looking for a match to the pattern, returning a Match object, or None if no match was found.
>>> re.search(r"\W(.)\1\W", " ff ") <re.Match object; span=(0, 4), match=' ff '> >>> re.search("\\W(.)\\1\\W", " ff ") <re.Match object; span=(0, 4), match=' ff '>
re/search
search