Hi Tony

example-String

That is a new testversion

now i want it mak to a new (shorter )string

<<substring title start end>>
<<substring "title" "9" "10"> Member for this <<substring "title"  "16" 
"19">>

should given "a Member for this test"


Am Freitag, 27. März 2020 12:15:42 UTC+1 schrieb TonyM:
>
> Gerald,
>
> It would be good if you gave a sample string and the result.
>
> See here, https://tiddlywiki.com/prerelease/#Filter%20Operators
>
> Any filter can be used to do this, but the triple braces are quick and easy
>
> \define source-field() title
> <$set name=string value={{{ [all[current]get<source-field>] }}}>
>
>
> ;Is one or some of these what you want?
> :First Character = {{{ [<string>split[]first[]] }}}
> :Last Character = {{{ [<string>split[]last[]] }}}
> :Count = {{{ [<string>split[]count[]] }}}
> :Length = {{{ [<string>length[]] }}}
>
>
> ;This is what split does, notice it removes the spaces (but not with count
> )
> {{{ [<string>split[]] }}}
>
> </$set>
>
>
> Regards
> Tony
>
> On Friday, March 27, 2020 at 5:34:17 PM UTC+11, Gerald Weis wrote:
>>
>> hi all
>>
>> I have an new projekt where i need an general substringfunktion
>>
>> the makro should work at the pattern "fieldname"  "starting 
>> characternumer which should be extracted" "last charcternumber wich should 
>> extracted"
>>
>> the most used field is the field "title" of the current Tiddler.
>> but other fields of current tiddlers should be possible to for use.
>>
>> this substring must be printet in an other field as string.
>>
>> my skill ist not so good.
>>
>>
>> thanks for ideas
>>
>

-- 
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/24c0f2d1-644c-48cf-a8f2-5fb23fa82ee3%40googlegroups.com.

Reply via email to