user warning: Table './zuggsoftdb/accesslog' is marked as crashed and should be repaired query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('', 'node/425', '', '38.107.179.240', 0, 'p9hsf3bgjdo5ftg4qbk7n6hpq6', 6272, 1337600622) in /home/tessh/public_html/modules/statistics/statistics.module on line 64.

Documentation

replace

Syntax: %replace(string,old,new)
Related: %subregex

return string with all occurrences of old replaced with new

Examples:

#SHOW %replace(abcdabcd,bc,AAA)
displays: aAAAdaAAAd

To remove all occurrences of a substring, use a null string "" as the new value:

#SHOW %replace(abcdabcd,bc,"")
displays: adad

or, just leave out the third argument: %replace(abcdabcd,bc)

#VAR priceList {986|4237|4619|4627|3918|3627|9764|298}
#SHOW %max(%replace(@priceList,"|",","))


displays: 9764

Add comment

Login or register to post comments