Use the module re to search for chracter pattern
re.search(pattern, text): return first occurence of the pattern
return matching object
- `match.group()
return element that match pattern
if match: match.group()
. (dot) any character
find('...g', 'piiig')
... any 3 charcaters
\. = character . (dot)