http://www.perlmonks.org?node_id=393759


in reply to Regexp do's and don'ts

Good work! I found two important missing items:

  1. Do use (?:...) when (...) isn't necessary.
  2. Do avoid $`, $& and $', explaining why, and showing alternatives for use with and without /g.