title: iOS regular expression arabic
body: <p>I come from this posts</p>
  
  <p><a href="https://stackoverflow.com/questions/29729391/regular-expression-arabic-characters-and-numbers-only">Regular Expression Arabic characters and numbers only</a></p>
  
  <p><a href="https://stackoverflow.com/questions/15465760/how-to-match-arabic-words-with-reg-exp">How to match arabic words with reg exp?</a> (didn't answer my question)</p>
  
  <p>I've tried</p>
  
  <pre><code>^[\p{Arabic} ]+$
  </code></pre>
  
  <p>and received</p>
  
  <blockquote>
    <p>'Parse error', reason: 'Invalid escape sequence @ pos 3: ^[\
    ▶p{Arabic} ]+$'</p>
  </blockquote>
  
  <p>I've also tried</p>
  
  <pre><code>^[\u0621-\u064A\s]+$
  </code></pre>
  
  <blockquote>
    <p>'Parse error', reason: 'Invalid character range @ pos 7: ^[\u062
    ▶1-\u064A\s]+$'</p>
  </blockquote>
  
  <p>I've also tried</p>
  
  <pre><code>^[\u0621-\u064A]+$
  </code></pre>
  
  <blockquote>
    <p>'Parse error', reason: 'Invalid character range @ pos 7: ^[\u062
    ▶1-\u064A]+$'</p>
  </blockquote>
  
  <p>I need ^[A-Za-z ]+$ that accepts arabic characters.</p>
  
  <p>Thanks in advance!</p>