Quote:
Originally Posted by ownedbycats
I found a post saying that both slashes could be used and it'll be normalized, so I switched it:
Code:
program:
if $$#fanficcat then
re(sublist($tags, ',', 0, 1), '\.', '/')
elif $formats == 'PDF' then
'PDF'
else
re(sublist($tags, ',', 0, 1), '^(.*?)($|\..*$)', '\1')
fi
Unfortunately now I am getting an invalid literal for int() with base 10: ',' What happened?
|
Because I (and you) didn't get the arguments to sublist right. They are
Code:
sublist(list_string, start_index, end_index, separator)
We both put the separator as the second argument instead of the 4th.