Thread: Regex examples
View Single Post
Old 02-02-2013, 05:55 PM   #190
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 161
Karma: 86115
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
--edit, not sure if this helps, unfamiliar with 'extract/fix/repack process'

i think you'd need to do a couple of passes to turn 1.jpg into 001.jpg, 11.jpg into 011.jpg, etc.

Code:
(.*?\s)(\d)(\.jpg)
\100\2\3

and then
(.*?\s)(\d{2})(\.jpg)
\10\2\3

Last edited by mzmm; 02-02-2013 at 06:01 PM.
mzmm is offline   Reply With Quote