StringBuffer:substr(start [,length])

Extract a substring out of a StringBuffer. If length is not specified, extract all characters until the end of the string.

Example

sb = StringBuffer.new()
sb:append('foobar')
bar = sb:substr(4,3)