|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > String commands > !STR.- String Command > String Replace Commands > String Operations |
MiniRobotLanguage (MRL)
STR.RemoveAny
Removes Specified Characters from a String

Remove any defined character from the String.
Intention
This command is used to remove all occurrences of specified characters from the source string.
•The command is case-sensitive.
•If the match characters are not present in the source string, the source string is returned intact.
•P2 specifies a list of single characters to be searched for individually, and a match on any one of them will cause that character to be removed from the result.
Syntax
STR.RemoveAny|P1|P2[|P3]
Parameter Explanation
•P1 - (Source String) The main string from which to remove characters.
•P2 - (Match Characters) The string containing the characters to be removed.
•P3 - (Optional) Variable for the result. If omitted, the result is placed in P1.
Example
'***********************************
' STR.-Sample
'***********************************
$$SRC=<abc123abc123abc3b3c2a>
$$MAT=abc
STR.Remove any|$$SRC|$$MAT|$$RES
' Removes all "abc" from the string
MBX.$$RES
ENR.
Remarks
-
Limitations:
-
See also:
•