View Single Post
Old 07-26-2020, 09:01 AM   #4
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by vargr View Post
thanks for the quick reply! unfortunately both of these are giving me the full names still...
Oops. That will teach me to "improve" the regex without testing it.

The correct templates are
Code:
program: list_re(field('#text'), '/', '^(..*?)\b.*$', '\1')
and
Code:
{#text:'list_re($, '/', '^(..*?)\b.*$', '\1')'}
chaley is offline   Reply With Quote