Project

General

Profile

Previous Up Next

strextr
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 \ :
  • \\ 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_
)
Parameters

_string_
any string
Return value

list of lines, each line is a list of words