MARCEDIT-L Archives

December 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:
Terry Reese <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Mon, 23 Dec 2013 02:41:24 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (90 lines)
So, honestly, I'd not do this with a regular expression when removing the
lines.  You can do it if you do a multiple line match (you have to use a
specific switch at the end of the regular expression: /m) but you'd have to
be careful not go get too greedy.  Honestly, it would take a couple of
steps, but I would just use the delete field function.  You can use wild
cards to define fields for delete.  So, this way you can do the following:

1. Field: 00x
     Find: ^=00[2-9]
     Check use regular Expression
     Click Delete Fields

2. Field: 1xx
     Click Delete Fields

3. Field: 2xx
    Click Delete Fields

4. Field: 3xx
     Click Delete Fields

5. Field: 4xx
     Click Delete Fields

6. Field: 5xx
     Click Delete Fields

7. Field: 6xx
    Click Delete Fields

8. Field: 7xx
     Click Delete Fields

9. Field: 8xx
     Click Delete Fields

10: 9xx
       Field: ^=9[0-8]
       Check regular expressions
       Click Delete Fields

11: 9xx
       Field: ^=99[0-57-9]
       Check regular expressions
       Click Delete Fields


That will remove the problem you are seeing with the lines, and is kind of
how MarcEdit sets up these types of interactions.  And if you'll need to do
this more than once, you could create a task for it, and then just run these
again as a keystroke.

--tr

-----Original Message-----
From: MarcEdit support in technical and instructional matters
[mailto:[log in to unmask]] On Behalf Of Eric CHAN
Sent: Monday, December 23, 2013 2:02 AM
To: [log in to unmask]
Subject: [MARCEDIT-L] How to delete empty line by regular expression

Dear All,

I am new to this list and have limited experience with MARCedit.  I have a
group of MARC records which I want to strip of all data except the Leader,
the system control number in tag 001 and a local tag 996. I have tried to
use regular expression, however, I got stuck. I cannot delete the empty
space as shown in the attachment. Is there an efficient way of doing this?
Since our library system is Aleph, I am not sure if the empty space will
create problems in oyr system.


 

Regards,

Eric Chan

________________________________________________________________________

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