MARCEDIT-L Archives

December 2017

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:
Emily Ferrier <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Fri, 22 Dec 2017 15:08:02 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
Season’s greetings, all!

I am new to both MARCEdit and regular expressions. I’m trying to set up some tasks that:

Delete all subjects except LCSH or 655, second indicator 7 ,$2lcac, lcdgt, lcshac, or lctgm

I found the answer to the first part in past responses to the list.

The first task I have set up is:
Delete Field Function
> File: 6xx
> Field data: ^=6[0-9]{2}.{3}[^0237]

But haven’t been successful figuring out how to do an ‘if not’ or ‘other than’ or ‘or’ statement (| wasn’t working the way I thought it would) for the second part. Some of my vendors are putting $2 right after indicators, others have it last. I need a general statement that looks anywhere in the 655  \7 for subfield $2 with those codes.

I’m trying to learn regular expressions so an exact answer isn’t needed but would still be appreciated. I would appreciate a nudge in the right direction if your time is limited. Is the delete function the right way to go? Could the “remove if field data does not match” be the answer? 

Thank you!
Emily

Emily Ferrier
Library | Senior Librarian
Olin College of Engineering
1000 Olin Way| Needham, MA 02492-1200
Tel:   781-292-2386 | http://library.olin.edu 

________________________________________________________________________

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