A list of the Twitter usernames mentioned in a Tweet.
Take care to use the correct operator with this target. As the examples show, use
== if you are filtering for just one username and use
in if you are filtering for a list of two or more usernames.
1. Filter for Tweets that mention @datasift:
Note that the argument is "datasift" rather than "@datasift". Also, remember that the target is an array and we are filtering for just one value so we use the
== operator (not
2. Filter for Tweets that mention @LadyGaga or @Beyonce:
The target is an array and we are filtering for a list of values so we use the
in operator (not
You cannot filter for usernames or links in the twitter.text target.
For example, suppose the original text of a Tweet is:
"@datasift launched today! http://bitly.com/r6pmP0"
The Tweet will not match against this filter:
twitter.text contains "@datasift"
OR twitter.text subst "bitly"
It will match against this filter:
twitter.text contains "launched today"