substr


Returns the substring of string, starting at character start and extending for length characters.


$(SUBSTR, string, start[,length])

 

Characters in the string are numbered from 1. If length is omitted, it returns the entire remaining length of the string.

 

Examples

Code Returns
$(substr,Mary had a little lamb.,1,8)

Mary had

$(substr,Mary had a little lamb.,19,23) lamb.

See also...

DIESEL functions
© Bricsys NV. All rights reserved.