a guest Jan 13th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import re
- myString = "http://192.168.1.1 www.google.com"
- patternToSearch = re.compile(r"(http|www)\S+")
- listOfResults = patternToSearch.findall(myString)
RAW Paste Data