Names with initials


I'm currently using the regular expression here

$2, $1

To edit the artist name so that it is transformed from Firstname Lastname to Lastname, Firstname for use in the artistsort field. This falls down however when you have artists such as K.D. Lang

Can anyone help?



It turns K.D. Lang into Lang, K.D.
Do you want something else?


I've just realised that. I just assumed it wouldn't work! Is there a primer somewhere that I should read - I'm interested in how the return values are worked out, precedence, that sort of thing. I only touched on grep years ago when I "brushed past" some unix boxes!



and you can find more on the net by yourself.