Contents | Index | < Browse | Browse >
STRIP(<string>, [{'B'|'L'|'T'}], [<list>])
returns a string
Removes spaces (by default) or any character in <list> from the leading,
trailing, or both ends (specified by the option used as the second
argument) of <string>. The default option is 'B'.
Example:
say '|'strip(' understand ')'|'; >>> |understand|
say '|'strip(' understand ',L)'|'; >>> |understand |
say '|'strip('___understand___',T,'_')'|'; >>> |___understand|
say strip('understand',,'dnu') >>> ersta
Also see
The examples above use the abuttal concatenation operator to add the
character '|' to the beginning and end of the string returned by STRIP().
Next: SUBSTR() | Prev: RIGHT() | Contents: String functions