View Single Post
Old 05-01-2012, 09:02 PM   #1
Sidetrack
Enthusiast
Sidetrack began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jan 2009
Location: South Pacific
Device: Kindle DX
Regex to selectively grab individual tags?

I've got some hierarchical tags that I'd like to "move" to a custom column so I can easily use them to make collections on my PRS-T1. There is a lot of this management that I want to to do so I'm hoping to use the Search&Replace dialog to do it.

I expected that something like "Accolade\.(.*)" in the regex field would let me extract the information I want but it seems to grab the rest of the tags as well. What am I missing to get from this:
{tags}
Places.Africa, Imperialism, Accolade.100 best.Radcliffe's, Accolade.100 best.Some Prize.1958, Accolade.100 best.Modern Library, Trading posts, Degeneration, People.Europeans

to this and this:
{#accolades}
100 best.Radcliffe's, 100 best.Modern Library Readers, 100 best.Modern Library, Trading posts

{tags}
Places.Africa, Imperialism, Trading posts, Degeneration, People.Europeans
Sidetrack is offline   Reply With Quote