View Single Post
Old 06-21-2015, 06:32 PM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Swapping out the "-" for ";" -- just the middle separator, not the bit in the character sets.

Search title:
Code:
([^-]+) ; ([^-]+)
Replace author:
Code:
\2
Apply

Search title:
Code:
([^-]+) ; ([^-]+)
Replace title:
Code:
\1

For more about the wild and wonderful world of regex, check out this website: http://www.regular-expressions.info
Taught me (most) everything I know. Worth a look.
eschwartz is offline   Reply With Quote