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?
|