Page 1 of 1

Batch rename with regular expression

Posted: Tue Oct 15, 2019 3:38 pm
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 2139 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 2139 times
Thanks

Re: Batch rename with regular expression

Posted: Thu Nov 14, 2019 6:51 am
by xnview
you can't use $1, please try
DCP
->
janvier DCP

Re: Batch rename with regular expression

Posted: Fri Nov 15, 2019 12:42 pm
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