Test, validate and match regular expressions
This regular expression matches a filename without its file extension from a given string. It effectively captures the base name by stopping before the first dot (`.`), while excluding commonly invalid filename characters such as slashes, colons, and asterisks. It is typically used to extract or validate the primary name of a file in multiline text.