aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.58 - [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] ,  [remove]  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
This manual was generated with wtfm
on February 18th, 2026 at 12:52 MT
wtfm uses aa_macrov3 and SqLite
aa_macrov3 uses Python 3