Chris,
I often test regular expressions before leaping into doing something dangerous on Marcedit, or for any programming, e.g. this one: http://www.regular-expressions.info/javascriptexample.html. It's ace for quickly testing and debugging something. There is also a decent reference on the same site, and I did the following 2 page introductory Word document for an event last year, which might be helpful: http://www.mashcat.info/orangeaurochs/regex.docx
Thanks,
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 Fox, Chris
> Sent: 03 July 2013 21:22
> To: [log in to unmask]
> Subject: Re: [MARCEDIT-L] Deleting non-LC 6XX's
>
> Janelle,
> Thanks so much for the book suggestion! I'm definitely going to look into it.
> Chris
>
> Sent from my iPad
>
> On Jul 3, 2013, at 9:58 AM, "Janelle Zetty" <jzetty@SHREVE-
> LIB.ORG<mailto:[log in to unmask]>> wrote:
>
> This book helped me understand regex and it was an enjoyable, easy read:
> Sams Teach Yourself Regular Expressions in 10 Minutes by Ben
> Forta<http://www.goodreads.com/author/show/40704.Ben_Forta>.
>
> Janelle Zetty
> Assistant Cataloger
> Shreve Memorial Library
> Shreveport, Louisiana
> 318-226-5875
> [log in to unmask]<mailto:[log in to unmask]>
>
> From: MarcEdit support in technical and instructional matters
> [mailto:[log in to unmask]] On Behalf Of Fox, Chris
> Sent: Friday, June 28, 2013 4:14 PM
> To: [log in to unmask]<mailto:[log in to unmask]>
> Subject: Re: Deleting non-LC 6XX's
>
> Dana,
> Yes, that did it. The extra space was the culprit. I wish I knew *anything*
> about regex, so that I knew enough to even fiddle around with these
> expressions! Thanks so much for your help.
> Chris
>
> From: MarcEdit support in technical and instructional matters
> [mailto:[log in to unmask]] On Behalf Of Dana Pearson
> Sent: Thursday, June 27, 2013 5:43 PM
> To: [log in to unmask]<mailto:[log in to unmask]>
> Subject: Re: Deleting non-LC 6XX's
>
> Chris,
>
> there maybe an extra space in the regex as I copy it from the email
>
> ^=6.[^5].{3} [^0]
>
> try:
>
> ^=6.[^5].{3}[^0]
>
> dana
>
> On Thu, Jun 27, 2013 at 2:59 PM, Fox, Chris
> <[log in to unmask]<mailto:[log in to unmask]>> wrote:
> Terry,
> I copied and pasted the find expression below into the Delete Field utility,
> checked regular expression, and clicked on delete field, and I got zero
> deletes. I'll try it again later to see if there's something I did wrong.
> Thanks for your help. If you have any tips or maybe can tweak the
> expression, I would appreciate it.
> Thanks so much,
> Chris
>
> -----Original Message-----
> From: MarcEdit support in technical and instructional matters
> [mailto:[log in to unmask]<mailto:MARCEDIT-
> [log in to unmask]>] On Behalf Of Terry Reese
> Sent: Wednesday, June 26, 2013 9:15 PM
> To: [log in to unmask]<mailto:[log in to unmask]>
> Subject: Re: Deleting non-LC 6XX's
>
> If the 655 needs to be ignored, I think this would work:
>
> Field: 6xx
> Find: ^=6.[^5].{3} [^0]
>
> Check the regular expression option.
>
> This will only perform the operation when the field isn't at 655 field and
> meets the specific critiera.
>
> --tr
>
> -----Original Message-----
> From: MarcEdit support in technical and instructional matters
> [mailto:[log in to unmask]<mailto:MARCEDIT-
> [log in to unmask]>] On Behalf Of Fox, Chris
> Sent: Wednesday, June 26, 2013 3:32 PM
> To: [log in to unmask]<mailto:[log in to unmask]>
> Subject: Re: [MARCEDIT-L] Deleting non-LC 6XX's
>
> Terry or anyone,
> This is great. Could this delete expression (below) be modified such that all
> 655 fields would be untouched/not deleted? I can make it work by
> substituting individual fields for the 6xx in your instructions (610; 630; 650;
> etc.) but that requires repeated running of this expression. It would be nice
> if all the non-second indicator 0 6xx fields could be deleted without also
> removing the 655 fields with one command.
> Thanks,
> Chris
>
> Chris Fox
> Catalog Librarian
> McKay Library
> Brigham Young Univ.-Idaho
> [log in to unmask]<mailto:[log in to unmask]>
> -----Original Message-----
> From: MarcEdit support in technical and instructional matters
> [mailto:[log in to unmask]<mailto:MARCEDIT-
> [log in to unmask]>] On Behalf Of Terry Reese
> Sent: Friday, May 31, 2013 12:08 PM
> To: [log in to unmask]<mailto:[log in to unmask]>
> Subject: Re: Deleting non-LC 6XX's
>
> You can use the Delete Field function. I'd write an expression (assuming
> you are evaluating all 6xx fields with the specific
> indicator)
> File: 6xx
> Field data: ^=6.{5}[^0]
> Check Use Regular Expression
>
> Delete Field
>
> See attached.
>
> --tr
>
>
> On Fri, May 31, 2013 at 1:52 PM, Grucan, Sally
> <[log in to unmask]<mailto:[log in to unmask]>> wrote:
> > I apologize if this has been discussed before. Is there a regular
> > expression I can use to delete non-LC 6XX’s (2nd indicator other than 0)?
> > Thank you.
> >
> >
> >
> > --Sally Grucan
> >
> > Sally Grucan, Head of Cataloging
> >
> > Wesleyan University
> >
> > Olin Library Phone: (860) 685-3845<tel:%28860%29%20685-3845>
> >
> > 252 Church St. Email:
> [log in to unmask]<mailto:[log in to unmask]>
> >
> > Middletown CT 06459-0108 Fax: (860) 685-2661<tel:%28860%29%20685-
> 2661>
> >
> >
> >
> >
> >
> >
> ___________________________________________________________________
> ___
> > __
> >
> > 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:MARCEDIT-L-
> request@listserv
> > .gmu.edu>. 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 MARCEDIT-L-
> [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 MARCEDIT-L-
> [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 MARCEDIT-L-
> [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 MARCEDIT-L-
> [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]>.
>
>
>
> --
> Dana Pearson
> dbpearsonmlis.com<http://dbpearsonmlis.com>
> ___________________________________________________________________
> _____
>
> 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 MARCEDIT-L-
> [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 MARCEDIT-L-
> [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 MARCEDIT-L-
> [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]
________________________________________________________________________
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]
|