MARCEDIT-L Archives

November 2010

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:
Andy Helck <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Sun, 21 Nov 2010 07:22:01 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (112 lines)
Hi Don,

so in the search string 
(?<tagname>...)

indicates a 'named capture group'

if the first char after the opening parenthesis is a ? and then there is a identifier inside <> that gives the capture group a name rather than just a sequential number.

In the replace string you will be able to refer to the capture group by name. Thats what the $ and {} are all about:
${tagname} ...

find more info at http://www.regular-expressions.info/named.html




Yours,

Andy Helck
Wilkinson Public Library
Telluride CO 81435
________________________________________
From: MarcEdit support in technical and instructional matters [[log in to unmask]] On Behalf Of Reese, Terry [[log in to unmask]]
Sent: Saturday, November 20, 2010 11:13 PM
To: [log in to unmask]
Subject: Re: [MARCEDIT-L] Overdrive E-PUB records find and replace question

In .net, you can label groups.  That's what this does with the ?one label.

Tr

****************************************************
Terry Reese
Gray Family Chair for Innovative
Library Services
Oregon State University Libraries
Corvallis, OR  97331
tel:  541.737.6384
web: <http://people.oregonstate.edu/~reeset/> http://people.oregonstate.edu/~reeset/
****************************************************

On Nov 20, 2010, at 5:29 PM, "Depoorter, Don" <[log in to unmask]<mailto:[log in to unmask]>> wrote:

I believe I understand most of the regex expression below but not the (?<one>\$a).  What is “?<one>” ???????

Don Depoorter
Michigan State University Libraries
100 Library
East Lansing, MI  48824-1048
(517)884-0881

From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of Reese, Terry
Sent: Tuesday, November 16, 2010 4:13 PM
To: <mailto:[log in to unmask]> [log in to unmask]<mailto:[log in to unmask]>
Subject: Re: Overdrive E-PUB records find and replace question

You could try something like this:

Find: (=300  ..)(?<one>\$a)(.*)( : \$b.*)( ; \$c.*)
Replace: =300  \\${one}1 online resource ($2)$3

Check regular expressions option

--TR

From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of Susan Bermann
Sent: Tuesday, November 16, 2010 11:03 AM
To: <mailto:[log in to unmask]> [log in to unmask]<mailto:[log in to unmask]>
Subject: [MARCEDIT-L] Overdrive E-PUB records find and replace question

Hi folks,

I have about 250 E-PUB records that I just downloaded from Overdrive. Some of them have a 300 field that says 1 online resource (xx pg.) and some that have the pagination, etc. filled in as if it was a printed title:

300    $a 450 p. : $b ill. ; $c 25 cm.
OR
300    $a 1 online resource (450 p.) : $b ill.

Is there a way to find all the instances of the first (knowing that not all 300 fields will come with 450 pages indicated) and convert it into the second?

I know nothing about regular expressions, but I am willing to learn. ☺

Thanks for any help anyone might be able to offer.

Sue Bermann
Cataloging Section Supervisor
Palm Beach County Library System
4639 Lake Worth Rd.
Lake Worth, FL  33463
561/649-5415
[log in to unmask]<mailto:[log in to unmask]>



________________________________
Under Florida law, e-mail addresses are public records. If you do not want your e-mail address released in response to a public records request, do not send electronic mail to this entity. Instead, contact this office by phone or in writing.
________________________________________________________________________

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]<mailto:[log in to unmask]>. To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]<mailto:[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]<mailto:[log in to unmask]>. To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]<mailto:[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]<mailto:[log in to unmask]>. To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]<mailto:[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