Subject: | |
From: | |
Reply To: | |
Date: | Tue, 19 May 2015 16:20:47 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hello,
Apologies if this posts twice: I seem to be having issues with email.
I’m trying to write a regular expression that changes an instance of a repeated subfield into a new field. So, for a record that looks like this:
500 $a Data $u More data $u More data
Would look like this:
500 $a Data
500 $a More data
500 $a More data
I’m new to regular expressions, and have been working with the Edit Field Data recursive replacement function, but I keep getting stuck. So far my solution was to use the following:
Find (\$u[^$]*)
Replace $+/r
And then use Find/Replace again to change the $u to $a. However, I now realize that this solution deletes the initial $a. Is there a way to skip over a range of characters, or (more likely) a more elegant solution to this?
Thanks!
Katie
________________________________________________________________________
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]
|
|
|