Test, validate and match regular expressions
Matches entire lines consisting only of alphanumeric characters plus a specific set of allowed symbols: hyphen, apostrophe, single/double quotes, +, *, @, #, $, %, &, forward slash, backslash, pipe, and underscore. With the global and multiline flags, it validates every line in multi-line input, making it useful for validating names, shortnames, or identifiers that permit special characters while rejecting whitespace and other disallowed symbols.