View Single Post
Old 03-17-2016, 09:03 AM   #1
unabatedshagie
Enthusiast
unabatedshagie began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Jan 2014
Device: Kindle Paperwhite 2
Is this possible using a regular expression?

I've currently got a search/replace filter which searches on the series_index and renames the title of the book prepending the series number.

My search for is: ^(\d{1,2}).0$
My replace with is: #0\1 |

Now the replace works fine if the series has < 10 books but if it's got > 10 I need to run the replace in two passes remembering to remove the 0 from the replace with field if the series_index is 10 or more.

Is it possible to create something which will manage to do the replace properly in one pass assuming the series_index is < 100?
unabatedshagie is offline   Reply With Quote