reEscape method

String reEscape(
  1. String s
)

Implementation

String reEscape(String s) {
  return s.replaceAll(RegExp(r"[-\/\\^$*+?.()|\[\]{}]"), '\\$s');
}