title: Example of using NSRegularExpression to detect if string contains Cyrillic
body: <p>I looked into the <a href="https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSRegularExpression_Class/Reference/Reference.html" rel="nofollow noreferrer">Apple reference</a> on <code>NSRegularExpression</code>, and understand that in order see if the string is Cyrillic I should use <code>\p{script=cyrillic}</code>. However, I have not been able to find an actual example of how this is done in the reference guide or in an <a href="https://stackoverflow.com/questions/11897531/detecting-if-nsstring-contains-chinese-characters">answer</a> located in SO. What I would ideally like to achieve is:</p>
  
  <pre><code>if (string contains \p{script=cyrillic}){
      return YES;
      }
  else {
      return NO;
      }
  </code></pre>