View Single Post
Old 08-05-2015, 03:37 PM   #1
masp
Enthusiast
masp began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Sep 2014
Device: ipad air
regexp search/replace not working as expected on individual authors in source field

Hi, I've been using the "search and replace" (bulk edit) dialog with no problems for, but suddenly hit an unexpected behaviour. I'm using "authors" as my search field, and (my custom, multiple-value field) "editors" as destination. I want to copy a subset of the authors in each book as editors. e.g.:

authors: jim (ed) & bob & bill (ed) => editors: bill & jim

I tried the following regexps:

(.+?) \(ed\)
^(.+?) \(ed\)$

but in every case I'm seeing *all* authors copied, e.g.:

authors: jim (ed) & bob & bill (ed) => editors: bill & bob & jim

I can't figure it out. Any ideas? Thanks! Mike
masp is offline   Reply With Quote