Regex remove part of a file name

OS: Windows 10
Tool: PowerRename

I need to remove the # symbol and the number in a file name IE:

ABC 2020 Sec. Fund - 2021 - # 1 Doe, John.pdf

to

Doe, John - ABC 2020 Sec. Fund - 2021.pdf

Using this expression:|

/(^[^#]*)-(.*$)

And this substitution:

$2 $1

I get the following:

ABC 2020 Sec. Fund - 2021 - # 1 Doe, John.pdf

Becomes

# 1 Doe, John ABC 2020 Sec. Fund - 2021.pdf 

There are multiple of these files that have to be renamed.

I need to make sure everything before the last name is removed. Everytime I add to this expression it breaks. I am not sure what I am missing.

Read more here: Source link