StringScanner.ScanToStringI Function
Syntax
Text as C = ScanToStringI as C(characters as c)
Arguments
- Text
The text between the starting and ending offset positions.
- characters
A character string to find.
Description
Skip until text matching string (case insensitive) is found. Return text we scanned over.
Discussion
The <StringScanner>.ScanToStringI() function moves the offset to the beginning of Find_Text and returns the text between the starting and ending positions of the offset.
Example
dim scanner as P
dim txt as C
txt = <<%text%
This is wonderful prose written
by a technical writer of great merit.
%text%
scanner = stringscanner.create(txt)
? scanner.ScanToStringI("Writer")
= This is wonderful prose written
by a technical
? scanner.GetToOffset()
= This is wonderful prose written
by a technical
? scanner.getremainder()
= writer of great merit.See Also