MARCEDIT-L Archives

December 2011

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:
"Reese, Terry" <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Mon, 5 Dec 2011 00:29:00 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (53 lines)
You'll want to test the expression before creating the task -- but the way that they work -- The field is evaluated first, so set it as a group evaluator (0**), then the field data is evaluated from the = forward -- that way you can evaluate the indicators in the field.  

--TR

________________________________________
From: MarcEdit support in technical and instructional matters [[log in to unmask]] On Behalf Of James Staub [[log in to unmask]]
Sent: Monday, December 05, 2011 12:07 AM
To: [log in to unmask]
Subject: Re: [MARCEDIT-L] How do I eliminate concatenated empty lines?

Terry,

Thanks for the suggestion! I had mistakenly assumed that I couldn't use
regular expressions in the task's Delete Field action, and I'm way too lazy to
create 965 Delete actions. I think using regular expressions will take that
down to about 40...

More questions!

1. When I try to create a Delete Field action with the following in the Field box
with Use Regular Expressions checked

(00[2-9]|01.|02[13-79]|0[3-9].|10[1-9]|11[2-9]|12.|13[1-9]|1[4-9].|20.|21
[35-9]|2[23].|24[1-489]|2[5-9].|3..|40[1-9]|41[2-9]|4[23].|44[1-9]|4[5-
9].|50[0-46-9]|5[1-9].|6..|70[1-9]|71[2-9]|72.|73[1-9]|74[1-9]|7[5-9].|80
[1-9]|81[2-9]|82.|83[1-9]|84[1-9]|8[5-9].|90[0-689]|9[1-3].|94[0-57-9]|9
[5-8].|99[0-79])

I get a System.ArgumentOutOfRangeException. The same is true of

(00[2-9]|01.)

Is that error expected behavior?

2. When I try to create a Delete Field action with the following in the Field box
with Use Regular Expressions checked

00[2-9]

I get the message "Task has completed" but no tags appear to have been
deleted. What am I not doing right?

More later,
James

________________________________________________________________________

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