a guest Aug 14th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- string = "Hello, please send message to @david, @nick, @jack, but do not send message to any email address like email@example.com or firstname.lastname@example.org, thanks!"
- matches = re.findall("@w+", string)
- #return ['@david', '@nick', '@jack', '@google', '@yahoo']
RAW Paste Data