title: Check if string is all capitals using classic asp
body: <p>I need a function to check if a string is all (or mostly) capitals using classic asp. (I need to prevent users from inputting titles using all capitals.)</p>
  
  <p>For example, if a string of 30 letters contains 20 or more that are capitalized, I'd need to flag it as "All capitals". So "The Count of Monte Cristo" would be fine, but "The COUNT of MONTE CRISTO" would not.</p>
  
  <p>I was thinking about starting with a count of letters that match <code>[^A-Z]</code>, but how do I do that?</p>
  
  <p>This needs to be in Classic ASP and not VB.</p>