If I remember correctly, you are matching any . in the original filename and replacing it with fig. This would include the . between the chapter number and the image number as well as the . prior to jpg.
A search string something like ch(.*?)\.(.*?) and a replacement string of ch\1fig\2 is likely to be closer to what you need.
|