fork download
  1. import re
  2.  
  3. text = """an id: @username1
  4. another id:@username2
  5. not an id@username
  6. """
  7. print(re.findall('\B@\w+', text))
Success #stdin #stdout 0.02s 9512KB
stdin
Standard input is empty
stdout
['@username1', '@username2']