title: preg_match(): Compilation failed: invalid range in character class at offset 15
body: <p>I am getting this error while validating name.... I had searched regular expression for international name few months ago and finally got something working here : <a href="https://stackoverflow.com/questions/8013897/accept-international-name-characters-in-regex">Accept international name characters in RegEx</a></p>
  
  <p>but now its showing me this error, Please help </p>
  
  <p>preg_match(): Compilation failed: invalid range in character class at offset 15</p>
  
  <pre><code>if(preg_match("/^[a-zA-Z\s,.'-\pL]+$/u", $name)) {
      return true;
  } else{
      $this-&gt;addError($field_name.' contains invalid characters');
      return false;
  }
  </code></pre>
  
  <p>also try this preg_match("/^[\s,.'-\pL]+$/", $name) but still showing same error</p>