I hate to say this, since I seem to harp on this theme, but
since replacing newlines is a standard function of ordinary text
editors, as well as global-replacement apps like PowerGrep, to
say nothing of Perl, why not use one of them? I.e., use TextPad
or EditPad Pro or Notepad++, applied to the mnemonic files?
In older versions of TextPad, for example, you get the additional
benefit that its regex engine treats newlines as a class of
characters, rather than a particular character, so replacing
\n([^=]) with \1 will work regardless of whether the file uses
0A, 0D, or combinations thereof.
pfs
On Mon, 11 Oct 2021, at 12:30, Cab Vinton wrote:
> Hi, All --
>
> My regex searches for carriage returns -- \r\n, \r, \n -- are all
> being returned empty.
>
> The record structure validator is able to identify these as malformed
> fields, so I'm wondering if there's another way of doing this so we
> can do a simple find & replace. (We have a number of records where
> catalogers copy & pasted lengthy plot summaries into the 520.)
--
Paul Schaffner
University of Michigan Library : Digital Content & Collections
Jackson College : Library Technical Services
[log in to unmask] | http://secure-web.cisco.com/1rVe0-cLplIRkYCi8a_uySGxvNqAxaCYfXf11OlUkldcJRxarf-C-IgxFo6dhFsOd_JIC4ZiQ5c6p7_MgzGC6jO5qNvFWWGoObaKwMLTecra8XX6Sur6INwYfxbFT_yMrn7kn2XzHnuH-MKDwIzt8HSGDXLVb3-yqpWLel20ARN_ydfdu-Eoy6KOChYuGi-62QlTOwadMhwb1EfZ_LzHu83zdPuq_n8OBBMkJYrdrstUMAx7Ar1VMCYLs3fhC-edp7Bj6bczexA1JFpVTDTbf9vI1ruDFDBxFwDZiHMtTJTCvtwKqTsceijIleQrjmI6tYsof6UtwcdlHdkEG4RFWWqUZyx797UtmxlN4EIQEPCZXrhSNINk7FDdU-asosG0nd1aMNBFu3l1_tUprPBLN_1nUwJyZBtw3TElRCOOSIn4QaHpoUq611nhKnM4kWYGYvfeY9VOzGYuZEoHyvQ0KRg/http%3A%2F%2Fwww.umich.edu%2F%7Epfs%2F
________________________________________________________________________
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]
|