MARCEDIT-L Archives

October 2013

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:
"Meehan, Thomas" <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Thu, 31 Oct 2013 15:12:07 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (95 lines)
Eleta,

Shouldn't the following regex to find the fields have the $ escaped?

^10($a.*)($v.*)

like this:

^10(\$a.*)(\$v.*)

Although if that worked to get the fields, presumably that can't be it. 

I'm not on Marcedit at the moment (so might not be any help!), but I did try searching for
^10(\$a.*)(\$v.*)
and replacing with
=082  \\$1$2
on a regular expression testing site and did get:
=082  \\$a823.914$v18

Searching for on $axiv 695p. $c22cm for
^(\$a.*)(\$c.*)$
and replacing with 
=300  \\$1 ;$2
resulted in
=300  \\$axiv 695p.  ;$c22cm
Although presumably there might be some with $b in?

Cheers,

Tom


---

Thomas Meehan
Head of Current Cataloguing
Library Services
University College London
Gower Street
London WC1E 6BT

[log in to unmask]

> -----Original Message-----
> From: MarcEdit support in technical and instructional matters
> [mailto:[log in to unmask]] On Behalf Of Eleta Grimbeek
> Sent: 31 October 2013 14:37
> To: [log in to unmask]
> Subject: [MARCEDIT-L] Need help with numbers (Regular expressions)
> 
> I am working on a file with all funnies - this is raw data that I have to convert
> to marc Thus even before I even open it in Marcedit
> 
> Some lines don't even have marc fields
>  I am trying to change the following line:
> 
> 10$a823.914$v18
> 
> To
> 
> 082  \\$a823.914$218
> 
> I could find all the fields with
> 
>  ^10($a.*)($v.*)
> But as soon as I use the reg. expression
> 
> =082$1$2
> This is what I get:
> =082$1$2  ???
> 
> The same applies to:
> $axiv 695p. $c22cm
> 
> How do I change it to -
> 
> =300  \\$axiv, 695 p. ; $c 22 cm.
> 
> Any help would be appreciated.
> 
> Eleta
> 
> ___________________________________________________________________
> _____
> 
> 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