MARCEDIT-L Archives

January 2024

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:
James Staub <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Tue, 16 Jan 2024 09:48:53 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
Terry Reese et al.

I figure I'm doing something wrong and y'all can point it out pretty fast.

I'd like to use the Build New Field Tool to locate and transform information contained in other fields, and I can't seem to get the regex string function to work. (I cannot get the find and replace functions to work, either; I can get the trim and substring functions to work).

Example:
I'm trying to build a =949 item information field with subfield $1 ("el", shelf location) based on call number text appearing in =852 $h. If 852$h begins with 'E', =949$l should be "JEVERY"

Sample record:

=LDR  01378pam a2200397 a 4500
=008  150424s2016\\\\nyua\\\b\\\\\\000\1\eng\\
<snip>
=852  \\$pT 8$aECS$915.86USD$xCOPYID:104$xFSC@aRegular@c20230810$hE KRA

Using the following in the Build New Field Tool yields 0 results
=949  \\$l{852$h.regex('E','JEVERY')}
as do these variants in the pattern string
'E.*'
'^E.*$'
'/E/'
'/^E.*$/'

Help?

________________________________________________________________________

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