View Single Post
Old 07-26-2011, 04:51 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by unboggling View Post
I need to learn how to switch "FN LN" to "LN, FN" and back. Does anyone have those regex's handy? Could this be added as a function to the search/replace dialogue in regex mode?
To go from FN LN, try the search expression "(.*) (.+)" and the replacement expression "\2, \1". To go the other way, try "(.+), (.*)" with the replacement "\2 \1".
chaley is offline   Reply With Quote