title: Regex match 4 bytes unicode characters
body: <p>I have a regex which can find all 4 byte unicode characters in a string. I would like to make the following compatible with all popular browsers.</p>
  
  <p>The following code works fine in Chrome and Firefox, but Safari throws "Invalid regular expression: range out of order in character class"</p>
  
  <pre><code>var match = 'aaaaaa'.match(/[\u{10000}-\u{10FFFF}]/gu);
  </code></pre>
  
  <p>So my questions is how should I change the regexp to be able to match all 4 byte unicode characters in a string and without the use of the unicode feature of regex.</p>