aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

4.57 - [lsub] Built-In

Mnemonic aid: lsub for List Substitution

See also:  [aisort] ,  [append] ,  [asort] ,  [clearl] ,  [cmap] ,  [dlist] ,  [e] ,  [hmap] ,  [isort] ,  [lcc] ,  [lcopy] ,  [lhsort] ,  [list] ,  [ljoin] ,  [llen] ,  [lpop] ,  [lset] ,  [lslice] ,  [lsplit] ,  [ltol]  and  [translate] 

Takes a list of the form AsepB, where the default sep value is the "|" character; uses this list to replace strings in the content. Replacement is case-sensitive unless you provide the ci=1 option:


[lsub (sep=X,)listName,content]

[list entlist,&|&,she|Sue]
[lsub entlist,"She & me & some Tequila, she said"]
[lsub ci=1,entlist,"She & me & some Tequila, she said"]

"She & me & some Tequila, Sue said"
"Sue & me & some Tequila, Sue said"
"She & me & some Tequila, Sue said" "Sue & me & some Tequila, Sue said"

Other built-ins used here:  [list] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7