View Single Post
Old 03-01-2018, 09:22 PM   #5
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by jjquin View Post
The re_group command worked! I was able to search for each word followed by a period then replace it with the same word and a backslash. I was expecting to get a backslash at the end but its perfect!

{#genre:'re_group($,"([^.]+)\.","[[$]]/")'}

Fiction.Science Fiction.Space Opera - becomes - Fiction/Science Fiction/Space Opera
and
Non-Fiction.Manual.Appliance.Kitchen - becomes - Non-Fiction/Manual/Appliance/Kitchen
Awesome!

Note: / is a forward slash. A backslash goes the other way: \
sjfan is offline   Reply With Quote