View Single Post
Old 06-25-2014, 04:08 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I have it working and will submit it for the next release.

Examples using your suggested approach:
Code:
program: re_group(field('authors'), '(\S*), (\S*)', '[[$:uppercase()]] ', "[[$]]")
or
Code:
{authors:'re_group(field('authors'), '(\S*), (\S*)', '[[$:uppercase()]] ', "[[$]]")'}
Now I need to add another function like list_re that uses re_group instead of re. Something like
Code:
list_re_group(src_list, separator, search_re, group_1, group_2, ...)
that would apply the re_group to each item in the list.
chaley is offline   Reply With Quote