Previous | Up | Next |
The strextr function cuts the initial text up into lines, then each line into words, and builds the result in a list of lines, each line being a list of words. Only the lines featuring at least a word are selected. It is possible to place special characters in the words, with the aid of the character \ :Parameters
- \\ for the \ character
- \+' ' (backslash followed by a space) for the space character
- \+decimal number with 3 figures at the most for any ascii code
A \ at the end of a line allows to ignore the line return. For example strextr "abc def\n1 23 456" returns double list ("abc"::"def"::nil)::("23"::"456"::nil)::nil
[[S r1] r1] strextr ( S _string_ )
Return value
_string_ any string
list of lines, each line is a list of words