![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2011
Location: Ontario, Canada
Device: Kobo
|
Search & Replace "wildcards"?
I'm trying to edit the author fields in a library, because it has the author name, a hyphen, and a series name. I just want the author's name.
Example: Woods, Stuart - Stone Barrington 00 Is there a "wildcard" character I can use to replace everything after and including the hyphen with nothing? |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,880
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Warning this will match any title text that is hyphenated also note: the pattern below is space hyphen space then wild-card so wild-card is safe and wild - card will go bye-bye Code:
(.+) - .+ |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2011
Location: Ontario, Canada
Device: Kobo
|
Thanks so much! It worked perfectly.
|
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 522110
Join Date: Dec 2010
Location: Canada
Device: Kobo Wifi and Kobo Touch and Kobo Glo and Kobo H20
|
Regex is basically magic. =]
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search & Replace: A few "How to" | flopis | Calibre | 4 | 08-21-2017 07:27 AM |
Feature Request - replace "screensavers" with randomly selected book covers from libr | nathander13 | Calibre | 3 | 12-02-2009 12:21 PM |
Question - Does iLiab have the "search" & "annotation, highlighting" features? | HiSoC8Y | iRex | 5 | 07-01-2009 04:37 PM |
Swap "Prev Page" & "Next Buttons" ???? | kilofox | Amazon Kindle | 6 | 04-02-2008 11:39 PM |