I see -- you can do it this way -- the | are not true or statements in the REGEX. In the IF statement, you can actually use the keyword (OR) to create multiple lookups that are atomic in nature. Let me write up an example for you.
--tr
-----Original Message-----
From: MarcEdit support in technical and instructional matters <[log in to unmask]> On Behalf Of Diane Kinney
Sent: Wednesday, September 29, 2021 11:54 AM
To: [log in to unmask]
Subject: Re: [MARCEDIT-L] Conditional find/replace stumper
Thank you, Terry! Unfortunately, while that worked for that one record, changing all the find/replace statements hasn't fixed the overall problem.
In this record, I'm including the 650 instead of the 245, because "Chemistry" in the 650 is what's causing the problem this time. The 650 is causing this problem in some other records too.
=650 \0$aChemistry--Computer simulation.
=710 2\$aDrexel University.$bSchool.$tThesis.$f2019,$edegree granting institution.
=999 00$aChemical Engineering
My f/r statements are:
Find: (=710.*)(\$b)(School)(.*)
If: (=999.*Biological Sciences|Chemistry|Communication|Environmental Science|Mathematics|Physics|Psychology*)
Replace: $1$2College of Arts and Sciences$4
If: (=999.*Architectural|Chemical|Civil|Computer Engineering|Electrical|Environmental Engineering|Materials|Mechanical|Peace*)
Replace: $1$2College of Engineering$4
If I put the "College of Arts and Sciences" replace statement before "College of Engineering," it uses that statement. If I put "College of Engineering" first, that's the one it uses. But it seems like the order of the commands shouldn't make a difference, unless something in the find/replace statements is faulty.
I also noticed in one record there wasn't a 999 field, but it still got the correct find/replace in the 710 field. So it's getting the info from somewhere else, I just can't figure out why.
________________________________________________________________________
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]
|