Code: Select all
//Volumes/Movies/{n} ({y})/{n.upperInitial().space('.')}.{y}.{vf}.{vc}
As you can see, there is a colon in the filename which is an illegal character. FileBot notifies me of this and replaces it with a valid character. I want to replace the colon with a dash though. From what I've read this is the way to do so:
Code: Select all
.replaceAll(/[:|]/, " - ")