utils_match: Let '^' and '$' affect lines rather than the full string.