Batch rename problem - 1.98.5

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
dosdan
Posts: 17
Joined: Mon Sep 15, 2008 3:07 am
Location: Brisbane

Batch rename problem - 1.98.5

Post by dosdan » Sat Dec 31, 2011 3:23 am

Not sure if this is a bug, a possible enhancement or a lack of understanding:

I wanted to remove a bracketed number from a group of filesnames e.g.

K5__6317 (10576).JPG -> K5__6317.JPG
K5__6324 (11206).JPG -> K5__6324.JPG

In Batch Rename, I tried:

Replace: K5__#### (#####)
With: K5__####

and

Replace: K5__#### (#####).JPG
With: K5__####.JPG

and

Replace: (#####)
With: [field left blank]

How do I do this?

Dan

User avatar
Peter2
XnThusiast
Posts: 1162
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Batch rename problem - 1.98.5

Post by Peter2 » Sat Dec 31, 2011 10:14 am

I suppose that you need Wildcards and RegEx (regular expressions) http://www.google.com/search?sitesearch ... 20&bih=923 for this job - and I believe that XnView has some limits.

Maybe take a look here: Recommended File-Rename-Tools?
http://newsgroup.xnview.com/viewtopic.php?f=38&t=17400

Peter
XnView 2.49.2 German, Win 10

Post Reply