Table of Contents

Mid (Function)

Format

mid( string_expression, start_expression, length_expression)

returns string_expression

Description

Returns a portion of the specified string_expression, starting from the start character, and continuing for length_expression characters or the end of the string_expression.

Example

print mid("Hello", 2, 3)
print mid("Hello", 2, 999)

will display

ell
ello

See Also

2016/01/01 22:42

History

0.9.5bNew To Version
1.99.99.53Added length < 0
1.99.99.53Added start position < 0