daily pastebin goal
58%
SHARE
TWEET

Untitled

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