Atlantiraptor Docs

strip

Type: Function

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"
Argument Type Description
string string (required) The string to strip
prefix string The prefix to strip
suffix string The suffix to strip

Platforms: macOS, Linux, Windows