PurgeChar - script and chart function
PurgeChar() returns a string consisting of the characters contained in the input string ('text'), excluding any that appear in the second argument ('remove_chars').
Syntax:
PurgeChar(text, remove_chars)
Return data type: string
Arguments:
Argument | Description |
---|---|
text | The original string. |
remove_chars | A string containing the characters in text to be removed. |
Return data type: string
Examples and results:
Example | Result |
---|---|
PurgeChar ( 'a1b2c3','123' ) | Returns 'abc' |
PurgeChar ( 'a1b2c3','312' ) | Returns 'abc' |