#1 2011-01-15 00:53

signal
Member
Registered: 2011-01-15
Posts: 1

Replace ?-? with _-_ provided ? and ? are alphanumeric only

Hi folks.

Per title, I'm after a way to rename something like:

mistake-albumformat (directory)
or mistake-trackformat.file (file)
or mistake1-trackformat.file (file)

to:

fixed_-_albumformat
fixed_-_trackformat.file
fixed1_-_trackformat.file

(respectively)

... but to avoid renaming cases such as:

good - albumformat
good_-_trackformat.file

I hope I explained that clearly.

Thanks in advance,
John

Offline

#2 2011-01-16 08:57

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: Replace ?-? with _-_ provided ? and ? are alphanumeric only

I don't know if this is exactly what you mean, but try this RegEx Rule.
Expression: ([0-9A-Z])-([0-9A-Z])
Replace:     $1_-_$2


If this software has helped you, consider getting your pro version. :)

Offline

Board footer

Powered by FluxBB