title: Detecting All Caps in a string
body: <p>I am having trouble trying to write a regular expression in JavaScript that can detect a whole word of at least 2 characters that is typed in all CAPS. </p>
  
  <p>This is what I have tried and it seems to work . </p>
  
  <pre><code>/\b[^\Wa-z0-9_]+\b/
  </code></pre>
  
  <p>however, I will detect if a user starts a string "I like you." </p>
  
  <p>Since, I is capitalized it returns true, hence why I want to only detect words that are all caps of more then 2 letters.</p>