Open hax opened 3 years ago
Current example in README is:
text.replace(new RegExp(RegExp.escape(str), "g"), newSubstr)
But because we now have replaceAll, it could be simply ourLongText.replaceAll(str, newSubstr) now.
replaceAll
ourLongText.replaceAll(str, newSubstr)
PR welcome
Current example in README is:
But because we now have
replaceAll
, it could be simplyourLongText.replaceAll(str, newSubstr)
now.