View Single Post
Old 04-12-2021, 02:15 PM   #30
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,651
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thank you.

How do I escape a forward slash? the first if of this statement isn't working for me. I tried adding a second slash to escape it but it errored too.

Code:
program:

if $$#fanficcat then
    list_re($tags, ',', '\.', '!')

elif $formats == 'PDF' then
   'PDF'

else
    list_re($tags, ',', '^(.*?)($|\..*$)', '\1')
fi
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.
Attached Thumbnails
Click image for larger version

Name:	2021-04-12 17_25_13-Template tester.png
Views:	2107
Size:	32.2 KB
ID:	186571  

Last edited by ownedbycats; 04-12-2021 at 04:27 PM.
ownedbycats is online now   Reply With Quote