Test, validate and match regular expressions
This regex matches single occurrences of a space, a period (.), or a newline character. When used with the global and multiline flags, it is typically employed to find illegal characters in a GitLab branch name, as these characters are generally not allowed.