Rename Help with interesting difficult regEx patterns

Try my Dynamic Renamer. It makes these really easy, and you can save them as presets. Here are the "New name" values that solve your problems 1 - 5:

  1. -/{2,}/ /g -///g

  2. -/([a-z])([A-Z])/$1 $2/g -ct

  3. -sl

  4. -/. / - /

  5. -/-\d+//

And you can add additional transformations if you wanted. For example, your number 5 changes the 1st one here to the 2nd one:

How to rename-1.txt
How to rename.txt

If you now wanted to title case that name, just add -ct to to #5 answer:

-/-\d+// -ct

or if you didn't want the "To" to be uppercased (because it is a preposition):

-/-\d+// -cT