View Single Post
Old 11-02-2018, 02:59 PM   #3045
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by JimmXinu View Post
In Calibre's Search & Replace? You could certainly do a text replacement for each. I don't know how you'd do a regex on a column with possibly more than one value.
It's probably safe to assume comma as separator.
Code:
search:
([^,§/]+?)([ ]*[§/][ ]*)([^,§/]+)

replace:
\3\2\1
No sure what it would do to something like:
Character 1 § Character 2 § Character 3

My guess, probably:
Character 2 § Character 1 § Character 3


Note, I removed the backslash. I think @Tanjamuse was just trying to use the single backslash to escape the slash but that's not needed inside [ ]. That tripped me up, too.
ilovejedd is offline   Reply With Quote