Test, validate and match regular expressions
This regular expression matches one or more characters that are typically forbidden in Excel worksheet tab names, including brackets, colons, slashes, asterisks, and question marks (as well as spaces). It is commonly used to sanitize strings before setting them as sheet names to prevent invalid file path errors.