Test, validate and match regular expressions
This regular expression is designed to extract a file's name and its extension from an absolute or relative file path. By matching both forward slashes and backslashes, it seamlessly supports both Unix/Linux and Windows directory structures. It isolates the final component of the path, capturing the base name in the named group `FileNameWithoutExtension` and the extension in a secondary group.