A big thank-you to Walter Nickeson for providing the solution to my problem!
I also received interesting, useful responses from Terry Reese and Bryan
Baldus. Your contributions are appreciated!
Paul Haire
-----Original Message-----
From: MarcEdit support in technical and instructional matters
[mailto:[log in to unmask]] On Behalf Of Nickeson, Walter
Sent: Tuesday, May 25, 2010 7:47 AM
To: [log in to unmask]
Subject: Re: [MARCEDIT-L] Regular Expressions for Mfhd 852
I think this might work:
Find:
(=852.*\$h)([A-Z]){1,3}([0-9\.]*\$i)([A-Z].*)
Replace with:
$1$2$3.$4
The expression looks for a subfield $h that begins with a string of one
to three capital letters that is followed by only digits or decimals
(i.e., a classification number without a Cutter), in turn followed by a
subfield $i that begins with a capital letter instead of a decimal. The
replacement expression returns the whole field with the decimal added
after the second subfield code.
*****************************************
Walter F. Nickeson, Catalog &
Metadata Management Librarian
Rush Rhees Library
University of Rochester
Rochester, NY 14627-0055
[log in to unmask]
(585) 273-2326 fax: (585) 273-1032
*****************************************
> -----Original Message-----
> From: MarcEdit support in technical and instructional matters
> [mailto:[log in to unmask]] On Behalf Of Paul Haire
> Sent: Sunday, May 23, 2010 9:13 PM
> To: [log in to unmask]
> Subject: [MARCEDIT-L] Regular Expressions for Mfhd 852
>
> Earlier this month, I posted a message asking for help in formulating
> regular
> expressions for manipulating LC Call Numbers in the holdings record
852
> field. I
> have slogged through several steps on my own and have actually learned
> a
> little something about regexes. However, I seem to be stuck on what I
> hope
> is the final step.
>
> My aim is to insert a decimal point at the beginning of the subfield
i,
> conditioned on the absence of a decimal point-capital letter sequence
> in the
> subfield h.
>
> Any enlightenment? Thanks!
________________________________________________________________________
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]
|