1. 12
  1.  

  2. 8

    It’s unfortunate that the post doesn’t say anything about why these tricks perform better, and whether that’s the case in multiple implementations. You can get some of that from the (http://www.rexegg.com/regex-best-trick.html)[older post he references].