strip/2—strip leading and trailing blank spaces from a string
Use the strip/2 function to remove the beginning and ending blank spaces from $STR and copy the resulting string into $NEWSTR.
$NEWSTR=strip($STR)
strip/2 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$STR | Input | STRING | Specifies the base string from which blank spaces at the beginning and end of the string are to be removed |
$NEWSTR | Output | STRING | Resulting string after the blank spaces have been removed |
strip/2 example
$MSG = strip($E.msg);
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*