How to move words from first place then addin to middle

A swapping-ground for Regular Expression syntax

How to move words from first place then addin to middle

Postby RenameHere » Tue Jun 21, 2016 1:41 am

Hi,
I love this program. It's great.
I need help to move and add words in file name.

Project 1:
Original: cn.ABC-123.What a Great Software.jpg
Change to: ABC-123_cn_What a Great Software.jpg

Project 2:
From: ABC-123.What a Great Software.jpg
Change to: ABC-123_cn_What a Great Software.jpg

Thank you.
8)
RenameHere
 
Posts: 2
Joined: Tue Jun 21, 2016 1:33 am

Re: How to move words from first place then addin to middle

Postby therube » Tue Jun 21, 2016 3:01 am

Project 1:

1:RegEx

Code: Select all
Match:  (.*?)\.(.*?)\.(.*)
Replace:  \2_\1_\3


-------

Project 2:

1:RegEx

Code: Select all
(.*?)\.(.*)
\1_cn_\2
therube
 
Posts: 347
Joined: Mon Jan 18, 2016 6:23 pm

Re: How to move words from first place then addin to middle

Postby RenameHere » Tue Jun 21, 2016 7:17 am

Thank you very much.
One brilliant script, save hundreds of files.
RenameHere
 
Posts: 2
Joined: Tue Jun 21, 2016 1:33 am


Return to Regular Expressions