|
|
|
Online Scripting Reference
|
|
stripText
|
Purpose
|
Removes a character or sub-string from a variable.
|
|
Syntax
|
stripText var {value}
var: A variable containing a text value to have certain characters or sub-strings to be removed.
{value}: The character or sub-string to strip from "var".
|
|
Notes
|
This command will remove ALL text matching "value" from the specified variable. This is a useful way to filter out unnecessary characters if you are trying to extract data from text received from the remove server.
|
|
Example
|
# stripText example:
setVar $value "This is my value"
stripText $value "my "
# displays: This is value
echo $value
|
Return to item listing |
|
|