Extract()
Jump to navigation
Jump to search
EXTRACT()
FUNCTION: extract(<string>, <first>, <length>[,<idelim>[,<odelim>]])
Extract returns a string of length words, starting with the first word. Unlike letters, the first word in a string is number 1, instead of 0.
The input delimiter for <string> is <idelim>. The output list delimiter is <odelim>. <idelim> defaults to a space.
Examples: > say extract(This is a really neat example, 4, 2) You say, "really neat" > say extract(Another@funky@test@for@extract, 3, 3, @) You say, "test@for@extract"
Related Topics: index(), insert(), ldelete(), replace().