operator: replace

    description:
        replace[c1, c2] ket
        replace all the individual chars in c1 with c2

    examples:
        -- remove comma's from numbers:
        replace[", ", ""] |35,572,990>
            |35572990>
                    
        replace[", ", ""] |123, 920, 001, 558>
            |123920001558>
                    
        -- replace punctuation chars with ' '
        replace[".,!?$-", " "] |some, ... ! $$? noise-text> 
            |some            noise text>            

    see also:
        string-replace
    
    future:
        maybe rename to substitute
        how replace " char? For now, see string-replace

Home