Page 1 of 1

replace - with depending on surrounding characters

PostPosted: Thu Dec 04, 2014 9:05 pm
by FLAMINGTOAST13
I need to make a rename, and I'm planning on having the parameters as follows:

5600350084-03_Auflage-Schnittgestell-Oberteil

which I need to rename as:

5600350084-03_Auflage_Schnittgestell_Oberteil

I cannot simply rename all "-" to "_", but I could set it to rename all "-" that have any letter in front and behind to "_" and leave "-" alone

I believe this involves regular expressions, however I am unfamiliar with them.

Any help would be appreciated