Skip to content
Please update to 0.77.3 or later to address multiple CVEs.
Velociraptor 0.77.4 is now available!

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"