I don't think that we have a core substring filter, the only way that I 
know of to do it is by some creative usage of the split, butfirst, first 
and join operators.

Which is probably not a practical usage, but it is possible.

\define subStr(input, start, end)
<$set name=len filter='[<__end__>subtract<__start__>]'>
<$list filter='[<__input__>split[]butfirst<__start__>first<len>join[]]'>

</$list>
</$set>
\end

<<subStr """hello""" 1 4>>

it contains the character at the index given for start and not the 
character given for end. And uses 0-based indexing.

Probably not useful, but I believe that is the current state of substrings 
in the core.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/606d688b-adf7-4313-9388-f7a9e011d37f%40googlegroups.com.

Reply via email to