#1 2009-06-25 15:03

pstein
Member
Registered: 2006-10-28
Posts: 43

How to cut the first 9 chars and insert them on the 4th last position?

Assume I want to cut the 5 first chars of a filename and insert them on the 4th last position of a filename (including extension).

How can I do this with Renamer?

Example

aaaaa_foobar.log
bbbbb_blah.log

should be after renaming:

_foobaraaaaa.log
_blahbbbbb.log

Offline

#2 2009-06-25 16:15

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

Re: How to cut the first 9 chars and insert them on the 4th last position?

With RegEx: (this is for 5 characters)

Expression: ^(.{5})(.+)$
Replace:     $2$1
and mark skip extension


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

Offline

Board footer

Powered by FluxBB