Read Me - Common Public License V1.0 - Copyright Notice(©)

substr


>>-substr(n-+-------------------------+-)----------------------><
            +-,--+--------+--+------+-+
                 +-length-+  +-,pad-+

Returns the substring of the receiving string that begins at the [n] th character and is of length [length] , padded with [pad] if necessary. The [n] must be a positive whole number. If [n] is greater than receiving_string~length, only pad characters are returned.

If you omit [length] , the rest of the string is returned. The default [pad] character is a blank.

String class - substr method

"abc"~substr(2)          ->    "bc"
"abc"~substr(2,4)        ->    "bc  "
"abc"~substr(2,6,".")    ->    "bc...."

Note

In some situations the positional (numeric) patterns of parsing templates are more convenient for selecting substrings, in particular if you need to extract more than one substring from a string. See also and .

Read Me - Common Public License V1.0 - Copyright Notice(©)