w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Python Regex : find zip from html content

If you really need to use regex for this (I would probably use BeautifulSoup for the second), you could use this for example:

regex = r'(?:zip:s*|PLZ</b></p><br/>
zip_match = re.search(regex1, mail_content)

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.