Nitpick, these should use \A instead of ^ and \Z instead of $ (difference is end of string instead of end of line)