Do you mean the slashes in this statement?
Code:
list_re($tags, ',', '\.', '\')
For me, those are backslashes. The character '/' is a forward slash.
Unfortunately the regexp-based template language lexical analyser cannot handle escaped backslashes. To do what you want you must use some other character.
Quote:
Also, how would you apply a sublist of just first item to the list_re? See the third item in the screenshot. I tried enclosing it but I broke it. This is for my #kobopath composite for a save template.
|
Do I understand you correctly, that you want to apply a regexp to the first item in a list? If so then do something like (not tested)
Code:
re(sublist($tags, 0, 1, ','), '^(.*?)($|\..*$)', '\1')