filmov
tv
How do I replace all occurrences of a string in JavaScript?
Показать описание
Given a string:
s = "Test abc test test abc test test test abc test test abc";
This seems to only remove the first occurrence of abc in the string above:
How do I replace all occurrences of it?
s = "Test abc test test abc test test test abc test test abc";
This seems to only remove the first occurrence of abc in the string above:
How do I replace all occurrences of it?