Quote:
Originally Posted by bthrowsnaill
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.
|
I don't think that regexp would help in importing. It would match the
lastname, firstname notation, yes, and allow for backreferences to the names, but to my knowledge, in importing, there's nowhere to input those backreferences. So you'd have to do a search and replace either way, and if you were to use the expression there, it should work fine.
@kacir: I have thought about how to do that as well, at this point I don't believe there is an elegant solution. Maybe if you could use backreferences in importing books, but as it stand now, there just is no way.