views:

117

answers:

1

Using the Twitter API, how would you retrieve all updates that are in all CAPS?

+2  A: 

Building pseudo code from SilentGhost's comment:

1. Retrieve all tweets
2. foreach tweet
    3. if (tweet.ToUpper() == tweet) then 
          4. Tweet Is All Caps

Use string matching instead of regex with this type of problem.

Gavin Miller
+1 for advice to only use regex if you have to
Val