Method code for $string.regexp_escape()

[Turn on line numbering]
arg str;

// anticipate_assignment();
return strsed(str, "([[\^$|)(.*+?])", "\%1", "g");

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

Tlon