I'm trying to remove from subfield $a any character which is not a number or X
Chris
-----Original Message-----
From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of Terry Reese
Sent: Friday, September 23, 2016 10:41 AM
To: [log in to unmask]
Subject: Re: [MARCEDIT-L] Usinf Regular expression in Edit Subfield to clean up ISBN
Assuming you are looking to remove a period, ? or asterisk, you need to escape these. Otherwise, it will match any character -- which is what you have happening here. But I guess I'm not quite sure what this is supposed to be doing.
--tr
-----Original Message-----
From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of Christine Sloan
Sent: Thursday, September 22, 2016 8:57 PM
To: [log in to unmask]
Subject: [MARCEDIT-L] Usinf Regular expression in Edit Subfield to clean up ISBN
Hi!
I'm having problems with a regular expression which I think worked the last time I used it (about 2 years ago)
I'm trying to remove invalid characters from 020$a using the Edit subfield
tool:
Field: 020
Subfield: a
Field data: \(.*?\)
Replace with: <blank>
Tick Use regular expression
Click Remove text
This is now unfortunately removing the a subfield code so that: =020
\\$a0385609841 is changed to: =020 \\$0385609841.
What am I doing wrong?
Cheers,
Chris
--
Chris Sloan Systems Librarian
Barr Smith Library email: [log in to unmask]
University of Adelaide Fax +61-8-8313-4369
South Australia 5005. P: (08) 8313-5853 M: 0419 821 285
CRICOS Provider Number 00123M
-----------------------------------------------------------
IMPORTANT: This message may contain confidential or legally privileged information.
If you think it was sent to you by mistake, please delete all copies and advise the sender.
For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide.
Think green: read on the screen.
________________________________________________________________________
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]
|