title: [partially solved]Javascript Regex for allowing all non-english alphabets , hyphen and underscore and block everythinh else?
body: <p>In Javascript, I need to <code>allow alphabets of all (or preferrably accented characters and chinese) languages, hyphen and underscore.</code>
  I need to disallow <code>special characters and numerals.</code>
  I looked at many answers but couldn't find anything that matches my needs.</p>
  <p>Allowed patterns:</p>
  <pre><code>ab_c
  åb-ç
  的å
  </code></pre>
  <p>Disallowed patterns</p>
  <pre><code>å!_
  å123
  !_!
  </code></pre>
  <p>Please share with me if you have a snippet..
  I am on a deadline and freaking out :(</p>
  <p>Edit:
  The following regex matches all non-English characters. If I can alphabets and hypehn and underscore, it would be complete</p>
  <pre><code>/[^\u0000-\u007F]/.test(&quot;ji&quot;);
  </code></pre>
  <p>I got this snippet from this link: <a href="https://stackoverflow.com/a/46413244">https://stackoverflow.com/a/46413244</a></p>
  <p>I added alphabtes, -, _ like below but it fails. Can anyone help?</p>
  <pre><code>/[^a-z\_\-\u0000-\u007F]/.test(&quot;ji&quot;);
  </code></pre>