MARCEDIT-L Archives

September 2016

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, 26 Sep 2016 21:21:51 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
Without seeing your replacement string too, not sure.  But this is how I'd write this:

Find: (=520.{4}\$.)([A-Z\W]*)(.*)
Replace: $1$$2[your new data]

Check use regular expressions

You have to use $$2 to represent the new subfield, if you use $2, it would just reprint your data.

--tr

-----Original Message-----
From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of deb cady
Sent: Monday, September 26, 2016 10:36 AM
To: [log in to unmask]
Subject: [MARCEDIT-L] find and replace not working as expected

Hello,

I am attempting to isolate and delete the uppercase text at the beginning of the 520 field.

in testing, this string will find the correct text :

([A-Z]*[\.,:,-])(.*)

however when I attempt to replace the text with $2, nothing happens. I just get a text not found error. It also fails if I begin the find with (=520.{4})

Any suggestions?

Thanks, deb

________________________________________________________________________

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