title: How to detect if a string contains hindi (devnagri) in it with character and word count
body: <p>Below is a example string -</p>
  
  <pre><code>$string = "abcde वायरस abcde"
  </code></pre>
  
  <p>I need to check weather this string contains any Hindi (Devanagari) content and if so the count of characters and words. I guess regex with  unicode character class can work <a href="http://www.regular-expressions.info/unicode.html" rel="nofollow noreferrer">http://www.regular-expressions.info/unicode.html</a>. But I am not able to figure out the correct regex statement. </p>