Quote:
Originally Posted by maartencoertjens
Hi
I am very new to regular expressions but found a lot of useful info here so adding books is much more succesful now. I have however a lot of books that are already in the library and that still have in the title field: title by author> For example The rhyme of the ancient mariner by Coleridge. I have been editing them one by one but got bite tired of that
And therefore am hoping that there is any easy way to do search and replace with regex.
Thanks a lot!
Maarten
|
It takes 2 passes.
First sets the Author. Second cleans the title of the
by author
the image shows the first setting
Not check the test cases for correctness
for the second pass, change the destination to
Title
AND the replace with to
\1 (the stuff before the
by
View the TEST results carefully. (a full backup of your Library would not be out of order
) before committing.
Doing this wrong