Let regex use \A and \Z