re python look for 8 symbols code example Example: regex in python >>> import re >>> p = re.compile('ab*') >>> p re.compile('ab*')