MARCEDIT-L Archives

October 2021

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:
Diane Kinney <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Thu, 14 Oct 2021 15:56:25 -0400
Content-Type:
multipart/mixed
Parts/Attachments:
Here's a decently formatted version of the note I posted a few minutes ago!  I can't figure out how to delete the old one.



Oooh, very clever to have caught the bad regex!! However, that line was just an example of the kind of statement I need to write. I had been seeking just to test the OR statement, so I used totally different words instead and it still didn't work. 

This works: (=999.*Chemical.*)

This works: (=999.*Educational.*)

This doesn't work, because it didn't catch either 'Chemical' or 'Educational': (=999.*Chemical.*) OR (=999.*Educational.*) 

So the "OR" element is the problem. I was using one a screenshot Terry posted last September as a guide, and mine doesn't seem any different in its construction. So I remain stumped, though I'm going to try the pipe suggestion someone else made, and maybe I'll get lucky.

Thanks for your help!



On Thu, 14 Oct 2021 18:57:50 +0000, McDonald, Stephen <[log in to unmask]> wrote:

>I see two things wrong.  First, (=999.*Education*) will match "Education" and "Educationn" but not "Educationa".  The "n*" is saying "any number of 'n' characters.  I believe what you want is (=999.*Education.*), which will match Education followed by any characters.
>
>The second things wrong is (=999.*Education*) OR (=999.*Educational*).  Assuming that you really mean (=999.*Education.*) OR (=999.*Educational.*), the second parenthetical statement is superfluous.  The first statement, (=999.*Education*), will already match both Education and Educational, followed by any other characters or words.
>
>					Steve McDonald
>					[log in to unmask]
>
>
>-----Original Message-----
>From: MarcEdit support in technical and instructional matters <[log in to unmask]> On Behalf Of Diane Kinney
>Sent: Thursday, October 14, 2021 1:14 PM
>To: [log in to unmask]
>Subject: [MARCEDIT-L] Using "OR" with "Find/Replace If"
>
>Hi, all!  Thanks for any help you can give me.
>
>Here's the situation:
>
>-----
>Find: (=710.*)(\$b)(School)(.*)
>Replace: $1$2School of Education$4
>
>The "Perform Find/Replace If" is always set to REGEX, and under Search Options "Use regular expressions" is always checked.  But:
>
>This works: (=999.*Education*)
>This works: (=999.*Educational*)
>This doesn't work: (=999.*Education*) OR (=999.*Educational*)
>-----
>
>Can anyone spot something I'm doing wrong?
>
>
>
>Diane Kinney [she/her/hers]
>Metadata Technician
>Metadata & Processing Services
>
>Drexel University Libraries
>Drexel University
>3300 Market Street
>W.W. Hagerty Library, Rm 112D
>Philadelphia, PA 19104
>Tel: 215.895.6845 |  Fax: 215.895.2070
>library.drexel.edu
>
>________________________________________________________________________
>
>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]


________________________________________________________________________

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