logo
Search
showing results for - "javascript replace character globally"
Tymeo
18 Aug 2019
1
2var str = "Mr Blue has a blue house and a blue car";
3
4var res = str.replace(/blue/gi, "red");
5 
source
similar questions
how to replace word from string in javascriptreemplazar caracteres en javascriptreplaceall alternative with string value javascripthow to assign char in a string javascriptreplace element from string javascriptfind single quote and replace in javascripthow to replace all the string in javascript when the string is javascript variablereplace espacial characteres from stringreplace globally in javascriptjs replace quotesjs replace all symbols in stringjavascript replace char if not present another characterreverse a string without affecting special characters in javascriptjavascript replace all characters except letters and numbersreplace all occurrences of a string in javascriptjavascript replace all occurrences of a stringreplacing characters in string javascriptreplace all character in string javascripthow to replace all occurrences of a string in javascriptjs replace all char in stringjs replace characters in a stringjs replace whole word and not words within wordshow to replace all characters in a string javascript
queries leading to this page
javascript replace character globallyreplace symbol globally javascriptjavascript replace character globally
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue