title: Why does my regular expression work in PHP but not JavaScript?
body: <p>I have a regex created by myself that I am currently running in PHP. Although when I merge it over to JavaScript, it refuses to work. I have also tried it in Python and it works perfectly fine.</p>
  
  <p>Regex:</p>
  
  <pre><code>@[[](.[^]]+)[]][()](\d+)[)]
  </code></pre>
  
  <p><a href="https://regex101.com/r/dE8tZ4/1#pcre">Testing in PHP, and working</a></p>
  
  <p><a href="https://regex101.com/r/dE8tZ4/1#javascript">Testing in JavaScript, and not working</a></p>