Subject: | |
From: | |
Reply To: | |
Date: | Thu, 6 Apr 2017 10:54:00 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I posted something like this last week, the week before. It wasn't perfect because work breaks vary a lot, but if you use spaces to designate words, you could do something like this in the replace function:
Find: (=245.{4}\$a)(?<words>(\w\s){80})
Replace: $1${words}
I'm writing this off the top of my head. If it doesn't work, let me know and I'll check the list archive for the syntax I wrote then.
--tr
-----Original Message-----
From: Nick Curotto [mailto:[log in to unmask]]
Sent: Thursday, April 6, 2017 10:45 AM
To: [log in to unmask]
Cc: Nick Curotto <[log in to unmask]>
Subject: reg ex help for abbreviated title field
Hello,
I need to create an abbreviated title field with 80 characters or less. It would be ideal to trim the field following the last full word that will fit within the 80 character limit but I'm not sure how difficult this would be.
I used the Build New Fields tool to add 210 field:
=210 \\$a{245$a}{245$b}
and have been wrestling with the find and replace function but I have not been able to come up with a good solution.
Any thoughts or ideas would be greatly appreciated.
Nick
Nick Curotto
Virginia Museum of Fine Arts
Margaret R. and Robert M. Freeman Library
200 N Boulevard | Richmond | VA | 23220-4007
vmfa.museum/library
________________________________________________________________________
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]
|
|
|