Subject: | |
From: | |
Reply To: | |
Date: | Mon, 10 Feb 2014 16:48:16 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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]
|
|
|