![]() |
#1 | ||
Bibliothekar
![]() Posts: 38
Karma: 10
Join Date: Jun 2011
Location: San Jose City, Philippines
Device: Galaxy Tab S w/Bookari Premium
|
Regular Expression help: complicated remaming of titles
I'm trying to rename a few hundred magazines using regular expressions in the EDIT METADATA|SEARCH & REPLACE, but I'm not getting anywhere. I read
![]() ![]() ![]() Here's a sample of three titles I now have: Quote:
Quote:
So, I'm stumped. The part that I can't figure out is how to take the number and repeat it in prepended text as shown, followed by a colon. What's the most painless way to make this happen? I really have no clue. ____________ Here's my view of the tool I'm using, FYI: Moderator Notice
The image you posted violates MR rules -- too big. Please read the posting guidelines in here ==>> MobileRead FAQ I fixed it this time by uploading it to the MR forum (the paper clip icon in Advanced), but I won't be doing that next time... BR Last edited by BetterRed; 03-30-2016 at 04:11 PM. Reason: Get rid of big image |
||
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,957
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
1) you have no (capture) pattern so it ='s all
2) you have a destination the same as source without modification by #1. The source of the duplicate values. The default (no destination specified) is SAME field IMHO your work order is flawed 0) Have a complete plan that avoids traps in the end. Like resulting Duplicate Titles after cleanup. Each case is Unique (see red item below) 1*) Map fragments to destination fields (1 pass per destination field, minimum). S&R does not have a true 'Move'. You add / insert, then clean up Normalize data. #, No., Issue: could be dropped (must as an Index for series) or made consistent 2) Cleanup. Remove data that now has a proper home Fine Woodworking 202: Fine Woodworking Magazine № 202 (Winter 2009) Tools & Shops Fine Woodworking 025: Fine Woodworking Magazine № 025 (Dec 1980) Fine Woodworking 178: Fine Woodworking Magazine № 178 Lime is Series and Index I have always seemed to have to do this as 2 passes: Series (name), then series_index This will also become the Primary Title, since it always exists (Duplicate tie breaker) Magazine(-period) is just a TAG ![]() If you have a custom Sub-Title field, you could map the subject there You could just leave (season) Subject in the title BTW Issue number is a great Series_Index if you always have it. ![]() Analog SF&F is a monthly (I use digits for month) EXCEPT the issue a Double Month issue ![]() ![]() So, Now ![]() Show (and Tell ![]() ![]() |
![]() |
![]() |
![]() |
Tags |
duplicating number, prepending text, regular expressions, renaming |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Please help me with regular expression :help: | Tatjana | Library Management | 2 | 05-30-2014 05:41 PM |
Regular Expression Help | Azhad | Calibre | 86 | 09-27-2011 02:37 PM |
Regular Expression Help | iKarampa | Calibre | 13 | 12-15-2010 07:17 AM |
Regular expression help | krendk | Calibre | 4 | 12-04-2010 04:32 PM |
Help with the regular expression | Dysonco | Calibre | 9 | 03-22-2010 10:45 PM |