Batch rename with regular expression

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
User avatar
michel038
XnThusiast
Posts: 1291
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Batch rename with regular expression

Post by michel038 »

I don't know if it's a bug or a suggestion ...

I'm trying to build a reg. exp in a sand box (regex101.com)
I want to add a word in filenames ... by replacing (year) by (year janvier)
regex01.png
regex01.png (13.2 KiB) Viewed 1801 times
This is working, the four digits of (year) are stored in $1


But XnViewMP does not process $1 in batch rename
regex02.png
regex02.png (11.18 KiB) Viewed 1801 times
Thanks
User avatar
xnview
Author of XnView
Posts: 43598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch rename with regular expression

Post by xnview »

you can't use $1, please try
DCP
->
janvier DCP
Pierre.
User avatar
michel038
XnThusiast
Posts: 1291
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Batch rename with regular expression

Post by michel038 »

Yes, it's ok for this particular case ("DCP"),
I have already renamed files with similar methods, changing criterias in each case.

But it would be nice if full Regex was supported for other users in the future

Thanks
Post Reply