how to call re module on python code example Example: regex in python >>> import re >>> p = re.compile('ab*') >>> p re.compile('ab*')