Java minus sign and hypen difference in regex : <p>I am checking file names with a regex.</p>

<p>File names can be format of </p>

<blockquote>
  <p>customer name - company name</p>
</blockquote>

<p>I am using this regex:</p>

<pre><code>private static final Pattern fileRegex = Pattern.compile("^[a-zA-Z0-9_\\-\\.\\s\\,\\[\\]()\\{\\}]+$");
</code></pre>

<p>But hypen sign (minus sign) is not working and it is acting like a dash. 
I am not sure maybe it is because of IntelliJ idea settings.
how can I add minus sign to this regex?</p>

<p>For example this format must be valid:</p>

<blockquote>
  <p>test - test1 − test2</p>
</blockquote>

<p>In here first one is just simple dash and the second one is minus sign.</p>
