Changing file name from Title, with a twist

I have a folder with 135 mp3's. I was able to successfully change their file name to the same as the Title.

However, there is a small quick that I was wondering can be batched. In the Title, is there a way that I can tell the software:
Change the file name to all 135 mp3's to what the Title of the mp3 is, BUT when you do that, remove the "-P" that is present in every one of the 135 mp3's?

I would hate to have to do this manually.

I already know I can export a list as a CSV file and open in excel, and from there use operators to do this, but I don't know if I can THEN import this back to mp3tag.

You could try an action of the type "Replace" for _FILENAME
Enter as search string: -P
Enter as replace string:
(leave that empty)

Convert Tag to file name

Alt+1

Format string: $replace(%title%,'-p',)

Thanks Chris!

At first it didn't work, but then I replaced the "-p" to a "'-P", and that did the trick!