Complex name edit - RegExp or Script?
Posted: 11 Sep 2008 16:53
I am in need of a method that would automate manipulating with file names and getting them to be how I want them to be.
The file names in question (excluding extensions) have segments of either just letters or combinations of letters and numbers and those segments are separated via dots.
So I guess what I need is a method (that I hope either RegExp or Scripting provide) for XY analyze each segment and act according to pre-requisites.
Here are the pre-requisites:
1. If a segment has only letters then capitalise the first letter, unless...
a) a segment matches one of preset segments, in which case capitalise all letters
2. If a segment matches a wildcard pattern such as a**b**, where * is always a number (in this case), then "a" and "b" will be capitalised.
Logically, I'd like to assign a KS to this operation so I can select a file (or multiple), hit a KS and voilĂ .
I understand that this is a custom kind of job and is a challenge, but I'm looking to dig deep into XYplorer's scripting and RegExp rename capabilities so any help would be very much appreciated.
Thanks a lot in advance!
The file names in question (excluding extensions) have segments of either just letters or combinations of letters and numbers and those segments are separated via dots.
So I guess what I need is a method (that I hope either RegExp or Scripting provide) for XY analyze each segment and act according to pre-requisites.
Here are the pre-requisites:
1. If a segment has only letters then capitalise the first letter, unless...
a) a segment matches one of preset segments, in which case capitalise all letters
2. If a segment matches a wildcard pattern such as a**b**, where * is always a number (in this case), then "a" and "b" will be capitalised.
Logically, I'd like to assign a KS to this operation so I can select a file (or multiple), hit a KS and voilĂ .
I understand that this is a custom kind of job and is a challenge, but I'm looking to dig deep into XYplorer's scripting and RegExp rename capabilities so any help would be very much appreciated.
Thanks a lot in advance!