Subject: | |
From: | |
Reply To: | |
Date: | Tue, 16 Jan 2024 15:41:42 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Try using double quotes (“), not single quotes (‘, apostrophes) in your regex parenthetical.
Sent from my iPad/iPhone
Mark K. Ehlert
University of St. Thomas Libraries
> On Jan 16, 2024, at 8:49 AM, James Staub <[log in to unmask]> wrote:
>
> [Some people who received this message don't often get email from [log in to unmask] Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> 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]
________________________________________________________________________
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]
|
|
|