3 ms·
No, that is something different.
by zzo38computer 7y ago
No, that is something different.
- snek 7y agoYes, but it works quite well for this task.
- anderskaseorg 7y agoIt has nothing to do with this task. function replaceAll(str: string, pattern: string, replacement: string): string { return str.replace(new RegExp(escapeForRegExp(pattern), "g"), replacement); }