$WBMID -  substring at the specified location

Availability
$WBMID  is available for use with all WBSP commands:

Syntax
$WBMID{sourcetext|start|length}
$WBMID[sourcetext|start|length]

Parameters
sourcetext - text from which the rightmost characters are returned
start - position inside sourcetext at which the part to be taken begins
length - numeric parameter indicating how many characters to return

Returns
Text containing a specified number (length) of characters starting from the start position of sourcetext.

Example

<!--
[FormFields]
wb_command=r
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBMID example</title>
</head>
<body>
The 8 character substring of sentence The rain in Spain stays mainly in plains starting at position 10 is:<br>
$WBMID[The rain in Spain stays mainly in plains|10|8]
</body>
</html>

After running this example, the resulting page in browser, may look like this:

The 8 character substring of sentence The rain in Spain stays mainly in plains starting at position 10 is:
in Spain