title: Regex in javascript with latin and turkish characters
body: <p>I am trying to replace all the non latin/turkish characters, but something is wrong and I can't find it.</p>
  
  <p>For example:</p>
  
  <pre><code>var texto = '*istediğiniz*';
  if (texto.match(/[^a-zA-Z0-9şŞıİçÇöÖüÜĞğ\- ]/g)){
  
      //only letters, numbers and turkish letters are allowed
      texto = texto.replace(/[^a-zA-Z0-9şŞıİçÇöÖüÜĞğ\- ]/g, ''); 
  }
  
  console.log(texto);
  </code></pre>
  
  <p>As a result, my word is output incorrectly: <code>istediiniz</code>. The output should be <code>istediğiniz</code>.</p>