MARCEDIT-L Archives

February 2014

MARCEDIT-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Bothmann, Robert L" <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Mon, 10 Feb 2014 22:50:33 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
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]

ATOM RSS1 RSS2