Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- import codecs
- if __name__ == '__main__':
- mm = codecs.open('tekst.txt', 'r')
- mm = mm.read()
- print(mm)
- # hmm = re.findall(r'((((\ |)[^\w@](\w+\+)*\w+(\.\w+)*)|(\ [^@]\w+)|(\ \".+\"))@{1}((\w+\.\w+)|com|(\[.+\])))', mm)
- hmm = re.search("/(((\ |)[^\w@](\w+\+)*\w+(\.\w+)*)|(\ [^@]\w+)|(\ \".+\"))@{1}((\w+\.\w+)|com|(\[.+\]))/g", mm)
- print(hmm)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement