View Single Post
Old 12-31-2024, 08:15 PM   #6
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,102
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I believe Calibre will accept any valid date format. You set the Display format it Tweeks.

National Geographic [1994-04]


Test this in the MDE bulk mode S&R REGEX

search {title}
.+?\s[(\d\d\d\d-\d\d)]

Replace {pubdate}
\1

That should populate Published. If that does not work try Replace \1-01
(pads with day 1)

Cleanup pass if wanted
search {title}
(.+?)\s[\d\d\d\d-\d\d]

Replace {title}
NOTE I moved the ( ) pair
theducks is online now   Reply With Quote