Using leo's code to replace all dots with spaces, I'd like to add to it, but need some help!
For example, with leo's code I have attempted to add to it myself doing this gives me error messages even though it more or less works.
Rename REGEXP PATTERN="(.)(([^0-9]).|.([^0-9]))(...)#" TO="\1\3 \4\5" TYPE=files
Rename REGEXP PATTERN="(.)(([^0-9]).|.([^0-9]))(.*)#" TO="\1\3 \4\5" TYPE=dirs
Rename PATTERN="_" TO=" " FINDREP
Rename PATTERN=" " TO=" " FINDREP
Rename PATTERN="pdtv" TO=" " FINDREP
Rename PATTERN="xvid" TO=" " FINDREP
Rename PATTERN="dvd" TO=" " FINDREP
I want to:
- Replace all dots with spaces [xx.xx becomes xx xx]
[b]- Replace all underscores with spaces. [xx_xx becomes xx xx]
- Add spaces around dashes [xx-xx become xx - xx]
- Replace multiple spaces (2 or more) with just 1 space [xx xx becomes xx xx]
- Add custom words that I find I am often deleting eg: pdtv, dvd, xvid [xx pdtv become xx] [/b]
You will see I tried to replace custom words above using the Rename Pattern. I wonder if it's possible to do it in one line, for example Rename PATTERN="pdtv", "xvid" TO " " FINDREP
Furthermore is it possible to simply Remove the words (without having to replace it with a space or character?)
Would there be a neater and more efficient way of producing this? Thanks.