View Single Post
Old 08-07-2015, 12:30 AM   #5
masp
Enthusiast
masp began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Sep 2014
Device: ipad air
Thanks! (I tried using [^&] but made no difference unfortunately.)

Actually my confusion stems not so much from the regexp syntax (I'm fairly familiar with that from my perl days) but because I was under the impression that when applying the regexp to a multi-value field (ie. an &-separated list of values, such as the "authors" field) the regexp would get applied to each individual value, rather to the whole string. In other words (pseudo-code), if field = "bob & jim (ed) & harry", then rather than this:

field.matches(regex)

it would be implemented more like this:

field.split("&").map { matches(regex) }

but that doesn't seem to be happening: did I misinterpret the docs?
masp is offline   Reply With Quote