Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 51 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top