Thanks Bryan!
They were all 978s, but it's always good to have this stash for next time!
Bobby
***********************************
Robert Bothmann
Metadata & Emerging Technologies Librarian
Professor, Library Services
Minnesota State University, Mankato
-----Original Message-----
From: Bryan Baldus [mailto:[log in to unmask]]
Sent: Monday, February 10, 2014 4:48 PM
To: MarcEdit support in technical and instructional matters; Bothmann, Robert L
Subject: RE: delete term from end of ISBN
On Monday, February 10, 2014 3:54 PM, Bobby wrote:
>I want to use the ISBN as a match point with some vendor records, but I need to get rid of the " (electronic bk.)" that follows the ISBN.
>I tried to co-opt an earlier regular expression, but apparently parentheses are "special".
>So in other terms, how do I make this:
>=999 \\$a9780387689913 (electronic bk.) Become this:
>=999 \\$a9780387689913
Similar to Dana's expression, but if you have 10-digit ISBNs thrown in with 13-digits, you'll want to be less greedy than "(\$a.{13})". So, in a quick test this seemed to work:
(=999)(.{4})(\$a\d{9,13}X?).+
select regex option
replace:
$1$2$3
###
\d{9,13}X?
(Find 9-13 consecutive digits, followed by optional X)
###
I hope this helps,
Bryan Baldus
Senior Cataloger
Quality Books Inc.
The Best of America's Independent Presses
1-800-323-4241x402
[log in to unmask]
________________________________________________________________________
This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit. If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]
|