So I came up with something using re() function. Unfortunately it only works if the Hierarchical Genre has the same number of arguments (matches) in the string:
{#genre:'re($,"^([^.]+)\.([^.]+)\.([^.]+)\.([^.]+)","\1/\2/\3/\4")'}
This works for (Non-Fiction.Manual.Appliance.Kitchen) to (Non-Fiction/Manual/Appliance/Kitchen) but fails for (Fiction.Science Fiction.Space Opera). Going to try re_group next.
|