$WBRIGHT - right substring

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

Syntax
$WBRIGHT{sourcetext|length}
$WBRIGHT[sourcetext|length]

Parameters
sourcetext - text from which the rightmost characters are returned
length - numeric parameter indicating how many characters to return

Returns
Text containing a specified number (length) of characters from the right side of sourcetext.

Example

<!--
[FormFields]
wb_command=r
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBRIGHT example</title>
</head>
<body>
Last 22 characters of sentence The rain in Spain stays mainly in plains are:<br>
$WBRIGHT[The rain in Spain stays mainly in plains|22]
</body>
</html>

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

Last 22 characters of sentence The rain in Spain stays mainly in plains are:
stays mainly in plains