Syntax
int sub ( string <regexp> string replacement string sourcestring string count)
Description
sub returns a new string from the sourcestring argument with the specified regular expression regexp replaced with the string specified in the replacement argument.
Example
result = sub("0x[[:xdigit:]]*:,"hex","These are numbers: 0xA8D, 0x34");