String Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > String commands > !STR.- String Command >

String Operations

STR.RemoveAny

Previous Top Next


MiniRobotLanguage (MRL)

 

STR.RemoveAny

Removes Specified Characters from a String

 

clip0851

 

 

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=<abc123abc123>

$$MAT=<abc>

STR.RemoveAny|$$SRC|$$MAT|$$RES
' $$RES will contain "123123"

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: