MARCEDIT-L Archives

January 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:
Bryan Baldus <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Wed, 22 Jan 2014 12:11:13 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
On Wednesday, January 22, 2014 11:26 AM, Mary Llewellyn wrote:
>I'd like to change the order of subfields in a tag 852.
>Currently, the order is $t $p 4j $c $d $z $g. I would like to move $z to the end. I am inexperienced in the ways of regular expressions, so the examples I found by googling don't seem to work when I try to adapt them to my situation.
>I tried  Find with (=852.{4})(\$d.*[^/\$])(/\$z.*[^$])(\$g.*)
>Replace with $1$2$4 $3
>It didn't work. What should I do instead?

I don't know if this will work in all cases for your data, but it seemed to work for a simple version I tried:

I started with:
=852  \\$ttest$ptest2$jsomestuff$cotherstuff$dstillmore$zmove me to the end!$gI was last now I'm not.

Find/replace with "Use regular expressions":

Find: (=852.{4})(.+\$d.*)(\$z.+)(\$g.+)

Replace: $1$2$4$3

Ended up with:
=852  \\$ttest$ptest2$jsomestuff$cotherstuff$dstillmore$gI was last now I'm not.$zmove me to the end!

####

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