A spell function returning the string with every occurence of a given pattern replaced by another string.
<source lang="javascript"> string gsub(strSource, strRegEx, strReplacement); </source>
Returns changed string or the same string if pattern does not match.
<source lang="javascript">
gsub(errorStr,"\n", ", ")
</source>
Gsub - SDU