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)
This is working, the four digits of (year) are stored in $1
But XnViewMP does not process $1 in batch rename
Thanks
(old post) Batch rename with regular expression [solved]
Moderators: helmut, xnview, Dreamer
(old post) Batch rename with regular expression [solved]
Last edited by michel038 on Wed Oct 29, 2025 9:24 pm, edited 3 times in total.
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Re: Batch rename with regular expression
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
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
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Re: Batch rename with regular expression
Six years later, I found the answer in this post
Thanks to Jkm ...
Instead of using $1,$2,$3... we must use \1 , \2 , \3
In my example : replace ^([0-9]{4} by \1 janvier
Thanks to Jkm ...
Instead of using $1,$2,$3... we must use \1 , \2 , \3
In my example : replace ^([0-9]{4} by \1 janvier
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm