returns a section from a document starting and ending with lines containing specific strings
Arguments
is a string containing the source document.
is a sub string of which indicates the first line of the section.
is a sub string of that indicates the end of the section.
The result starts with the first line of containing PageHeader$ and ends with the line just before the line containing PageEnd$.
is an optional value, containing the number of lines to be added at the end of the section. E.g. when, also the line containing is included.
Assuming a document with the following text:
then
returns
returns
Because "Ceremony" does not occur in Document$. Note, the function is case sensitive.
returns
since "falls apart" is not present in Document$.
returns
Two more lines are included.
Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview