No... you had it right the first time :). ``^`` & ``$`` only match internal new lines if you set the m flag.