Total players online: 17



Take the Tour | Site Map

Name

extract — Extracts a part of a string.

Synopsis

call string.txt extract { string } { left } [ right ] [ return ]

Author

Rolo

Parameters

Table 101. extract parameters

NameDescription
stringString to extract from
leftLeft of string
rightRight of string
returnName of return value ('return' by default)

Description

Extracts a part of a string. Note: if %2 isn't in %1 it will return null; if %3 isn't in %1 it will return from %2 to end of %1. Requires high linesPerCycle to work efficiently.

Returns

@%4 is the string in %1 between %2 and %3

Changes

#strRes

Example

call string.txt extract ___<string>___ < > token
display ok %token