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?
|