Remove something before a number

Advanced Renamer forum
#1 : 23/02-15 10:11
Splitting
Splitting
Posts: 3
Good morning,
I'm trying to rename a lot of files... what I need to do is to delete all the things before and after a code number and add a prefix to it.
The strings are like this:

RIDE_MEN-01193_black_charcoal_A.jpg
or
SKATE-01171_lime_royal_blue_A.jpg

What I need instead is this:

SO01193
or
SO01171

The character before and after the code number as you see differ every time but the amount of digits that compose the code remain the same

How can I rename this kind of stuffs?
Waiting for your replay, regards,
SPLIT


23/02-15 10:11
#2 : 23/02-15 10:33
Tester123
Tester123
Posts: 92
Assuming you have a '-' immediately before the 5 digits and a '_' afterwards, then try this:

Add Method: Replace
Text to be replaced: ([\w\s]+-)(\d{5})(_[\w\s]+)
Replace with: SO$2
Use regular expressions: Tick

Substitute the string 'SO' in the 'replace with' section with whatever you need.


23/02-15 10:33 - edited 23/02-15 10:38