SHARE
TWEET

Untitled

a guest Aug 14th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string = "Hello, please send message to @david, @nick, @jack, but do not send message to any email address like json1234@google.com or nelson.tan@yahoo.com, thanks!"
  2. matches = re.findall("@w+", string)
  3. print(macthes)
  4.  
  5. #return ['@david', '@nick', '@jack', '@google', '@yahoo']
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