I need to extract just the filename (no file extension) from the following path....
\\\\my-local-server\\path\\to\\this_file may_contain-any&character.pdf<
This will get the filename but will also get the dot. You might want to truncate the last digit from it in your code.
[\w-]+\.
Update
@Geoman if you have spaces in file name then use the modified pattern below
[ \w-]+\. (space added in brackets)
Demo