title: How is regular expression matching implemented in Node / V8?
body: <p>I've come across <a href="https://swtch.com/~rsc/regexp/regexp1.html" rel="nofollow">an article</a> that shows that regular expression matching is commonly implemented using a potentially under-performing algorithm vs. the suggested Thompson NFA algorithm.</p>
  
  <p>With that in mind, how is this implemented in Node or V8? Is it possible to improve performance using a JS implementation of Thompson NFA, perhaps if only a limited subset of the features is used (perhaps removal of lookahead or other "advanced" features)?</p>