Skip to content
Please update to the latest release 0.77.2 to address Multiple CVEs.

strip

Function
Arg Description Type
string The string to strip string (required)
prefix The prefix to strip string
suffix The suffix to strip string

Description

Strip prefix and/or suffix from a string

If neither prefix nor suffix are provided, leading and trailing whitespace is stripped.

Examples

strip(string=">>  lorem ipsum  <<", prefix=">>", suffix="<<") -> "  lorem ipsum  "
strip(string="   lorem ipsum   ") -> "lorem ipsum"