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/>
)(d{5})'
zip_match = re.search(regex1, mail_content)
zip_match.groups()[0]




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