title: Validating user's UTF-8 name in Javascript
body: <p>I am using the following JavaScript regexp to validate users First and Last names</p>
  
  <pre><code>var regexp = /^((?=[a-z \']).)+$/i;
  
  var val1 = "Normal Text' Compromised";       // true
  var val2 = "UTF Text' Połącz Słońce w Mózu"; // false  &lt;---- UTF-8
  var val3 = "Illegal char: Blac &amp; White";     // false
  </code></pre>
  
  <p>example at: <a href="http://jsfiddle.net/PR4T2/1/" rel="noreferrer">http://jsfiddle.net/PR4T2/1/</a></p>
  
  <hr>
  
  <p><strong>Question:</strong></p>
  
  <p>Is there any way to make the regex "<em>UTF-8 insensitive</em>" in order to let users use UTF characters ?</p>
  
  <p>I know that UTF is not supported in JS validation yet but I was wondering if there is any workaround.
  I also do not want to exclude all illegal characters manually like:</p>
  
  <pre><code>var regexp = /^((?![0-9\~\!\@\#\$\%\^\&amp;\*\(\)\_\+\=\-\[\]\{\}\;\:\"\\\/\&lt;\&gt;\?]).)+$/;
  </code></pre>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>Criteria are characters: a-z, space, \, ' and any other UTF char that can be found in user 
  First/Last Name like <a href="http://www.slovo.info/testuni.htm" rel="noreferrer">here</a>.</p>
  
  <p>I'm looking for something more general like <strong>\p{xx}</strong> sequencer in PHP </p>