MARCEDIT-L Archives

November 2013

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:
Terry Reese <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Mon, 4 Nov 2013 16:06:01 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
You are just looking to get rid of the j if it's there.  Something like
this:
Find: (=082.{4})(\$a[jJ])(.*)
Replace: $1$$a$3

--tr

-----Original Message-----
From: MarcEdit support in technical and instructional matters
[mailto:[log in to unmask]] On Behalf Of Young, Lorna
Sent: Monday, November 4, 2013 3:26 PM
To: [log in to unmask]
Subject: [MARCEDIT-L] Regular expression to remove call number prefix

Hello MarcEdit Wisdom

We have a file of 1749 records.  Some of the records have call number
prefixes, for example

=082  04$aj153.6/9$223
=082  0\$aj423$223
=082  \\$aJ612 SIL

We want to remove the "j" or "J" prefixes; however if there is a "J" used
farther into the tag as the cutter for an author, we want that to remain.

I've been trying different things with the "Edit Subfield" and regular
expressions, but I haven't hit the right expression yet.  How do I tell it
to remove the first character after $a if the character = j or J?

Thanks for any help you can provide.

Lorna Young
Cataloguing Librarian
Toronto District School Board

________________________________________________________________________

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]

________________________________________________________________________

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