Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace all with regex

const regex = new RegExp(oldString, 'g');
const replacedWord = stringToBeChanged.replace(regex, newString);
Source by discord.com #
 
PREVIOUS NEXT
Tagged: #replace #regex
ADD COMMENT
Topic
Name
7+8 =