BRUphil wrote:somenamesxyzs.mp3
othersabc.mp3
I want to make it xyzssomenames.mp3
(.*s)(.*)\.
replace
\2\1
works on 1st one only and not second because of second s
abc01xyz.mp3
sdfkfj04Act4.mp3
(.*)(\d*.*)
\2\1
this makes sense to me but doesn't work
First: you didn't must include the extensions in your regex
Second: i think you mean "works on 2cd one only", isn't it?
'cus ".*s" means "Zero or more characters followed by an 's' "
so your regex match on the first 's' of "somenamesxyzs.mp3"
So better try an ".+s" ,,,, "One or more characters followed by an 's' "
But this works only in your example.
You have one times 4 chars (xyzs) and one times 3 chars (abc)
For an regex you need an fixed part
like separate allways the last 3 chars
or the last 4 chars.
Or on an given char like '-' or '_' or ...
Here is also an overwiev about regex
http://www.bulkrenameutility.co.uk/Foru ... 4dc1296813