I have the following example tweet:
RT @user1: who are @thing and @user2?
I only want to have user1, thing and user2.
What regular expression can I use to extract those three names?
PS: A username must only contain letters, numbers and underscores.
Tested:
In Ruby (irb):
In Python:
In PHP: