MARCEDIT-L Archives

July 2020

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:
Fri, 24 Jul 2020 15:45:56 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
You don't need a regular expression.  The build field function has subfuntions you can call as part of the pattern.  Substring is one of them.  It looks like this:
=092  \\$aFAMILY DVD {245$a.substring(0,3)}

See: https://secure-web.cisco.com/1tq6oE7RScj-DJJO2yNe0C6SX17ibkkhqxXOsr0-EsB-ltVUgvob6MzcgaOV_l2jDILPfnjSq2PVwbq_oUMezBMQ7lyv-K43uLHL-isE82P7Hc5NnNY4QFEV_Licsyinp_N1RapZA_7auK2rJ1kT5HBFb18s-yzgcwoI1hVrT1z-USI3dEQGPTSi_Lgk-FLLkPShPJzbTmQHh8sElc8HN-WWLYV5i8brWxbh49lUfsTa_ekLEBewP6W0FhLNU1DVyCnAmO7NfKXrgb_o1Jyl3-820_R-ljfMV6Hl3rictuaa8wms-eitFIq8ygVf81aMJNskso9sBBWInALSoFjYjqIRRt1em9lZOehQgPPag43ENbSUU7n1zrKUNYOlwma8iqWMNYkfjArqQJ8f44LOT0pLUQtuMwYI-mC7mioqlrLRONQ9xtXUAKNrZT0c-k_uaUm5fmu7SIHa1Bv8rmHAIjg/https%3A%2F%2Fblog.reeset.net%2Farchives%2F1853

--tr

-----Original Message-----
From: MarcEdit support in technical and instructional matters <[log in to unmask]> On Behalf Of Jawahir Javaid
Sent: Friday, July 24, 2020 1:06 PM
To: [log in to unmask]
Subject: [MARCEDIT-L] regex in build new field

Hi,

I am trying to create a new 092 field with the first 3 letters of the title using the Build New Field function of MarcEdit. Is there a regular expression to capture this?

So far, I have the pattern: =092  \\$aFAMILY DVD {245$a}

This pulls the whole title. How do I limit to the first 3 letters of the 245 field? Or would you reccomend another approach to accomplishing this?

Thank you,

Jawahir Javaid

________________________________________________________________________

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