Thankfully, there's a better way— tools that can save you hours when batch-editing photos. This one, called ImageMagick, ...
I am using Actiona, a Linux GUI automation tool that automates mouse clicks, keyboard actions, and file tasks to automate my Linux desktop.
Why bother with complicated regular expressions when you can point and click your way to finding the files and folders you need?