$rtrim
Trim a string on the right-hand side, following a pattern.
$rtrim(
Source,
Pattern)
Example:
vOutput = $rtrim("Unifacexxxx","x")
Parameters
Parameter | Data Type | Description |
---|---|---|
Source | String | String to be trimmed on the right-hand side. |
Pattern | String | Pattern to remove. It can be a constant string or a syntax string. For more information, see Syntax Strings for Pattern Matching. |
Return Values
Trimmed string.
Use
Allowed in all component types.
Description
The $rtrim function is used to right trim a string following a pattern.
Using $rtrim
vInput="UNIFACExxxx" vOutput = $rtrim(vInput,"x") ; vOutput now contains "UNIFACE"