substring

A substring object is a part of a larger string and has all the properties of a string, as well as extra methods and properties.

Parent: string
Version Platforms
8.0.584.0 AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows
8.1.535.0 Debian, Ubuntu
9.5.13.130 Raspbian

Creation

character <integer> of <string> : substring
character of <string> : substring
first <integer> of <string> : substring
first <string> of <string> : substring
following text of <string position> : substring
last <integer> of <string> : substring
last <string> of <string> : substring
parenthesized part <integer> of <regular expression match> : substring
parenthesized part of <regular expression match> : substring
preceding text of <string position> : substring
substring <( integer, integer )> of <string> : substring
substring <string> of <string> : substring
substring after <string> of <string> : substring
substring before <string> of <string> : substring
substring between <string> of <string> : substring
substring separated by <string> of <string> : substring

Properties

following text of <substring> : substring
preceding text of <substring> : substring
start of <substring> : string position

Casts

<substring> as string : string
<substring> as substring : substring