Method code for $string.regexp_escape()

[Turn off line numbering]
  1: arg str;
  2: 
  3: // anticipate_assignment();
  4: return strsed(str, "([[\^$|)(.*+?])", "\%1", "g");

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

Tlon