Method code for $string.strip()

[Turn on line numbering]
arg string, @strip;

anticipate_assignment();
if (!strip)
    return strsed(string, "[][!@#$%^&*()_+=~`'{}|/?\"\,.<>;: -]", "", "g");
else
    return strsed(string, "[" + strip[1] + "]", "", "g");

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon