Thread: Rename and sort
View Single Post
Old 06-24-2016, 10:22 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,124
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
There are periods in the title. FUN (dot is a wildcard in REGEX and must be escaped)

First OFF. this BULK MODE EDIT Search and Replace

My REGEX pattern only works for your books that are Exactly the same as shown
VERIFY in the TEST results before committing (and Keep a backup)

Learn REGEX Basics, it will serve you well There are a couple of good REGEX tutorials (Pablo and Manichean)

Quote:
king.stephen.-.the.stand
Step 1: Copy (prior to Remove) the Author
Search field Title:
Search for (.+)\.(.+)\.-\.(.+)
Replace with \2 \1 << flips the order with a space
Apply Function (on right) Titlecase
Destination field Author

You need a different pattern set for Author with Initials, Generations or Titles

Once the Author FIELD is done, we need to clean the title

Same Search field and term
Destination field is Title
Replace With \3 <everything past the .-.
Why not take care of the Case at this using the SAME as above?


From here on, The Title cleanup requires unique solutions
theducks is offline   Reply With Quote