If the "input" string is this:
Armstrong, Kelley - Jaurķa
and the desired output is
Kelley Armstrong
then I think a correct search term would be this (so that it doesn't match anything after the author first name and omits the " - Jauria").
(\w*),\s{0,1}(\w*)\s.*
\2 \1 would still be the correct replacement string
I'm not sure if this will be helpful or not (and I haven't tested it so ymmv). I understand that the previously presented solutions assume that the lastname,firstname have been imported into the {Author} field and that they are meant only to parse in this (limited) context. I thought that a regex to match the author info from the full filename might be the missing link.
Last edited by bthrowsnaill; 10-02-2010 at 08:36 PM.
|