Method code for $string.strip()

[Turn off line numbering]
  1: arg string, @strip;
  2: 
  3: anticipate_assignment();
  4: if (!strip)
  5:     return strsed(string, "[][!@#$%^&*()_+=~`'{}|/?\"\,.<>;: -]", "", "g");
  6: else
  7:     return strsed(string, "[" + strip[1] + "]", "", "g");

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

Tlon