Top "Replace" questions

Replacing is the action of searching a string for a sub-string and replacing it with a different string.

JavaScript - Replace all commas in a string

I have a string with multiple commas, and the string replace method will only change the first one: var mystring = "…

javascript string replace substitution
MySQL string replace

I have a column containing urls (id, url): http://www.example.com/articles/updates/43 http://www.example.com/articles/updates/866 …

mysql replace
Replace values in list using Python

I have a list where I want to replace values with None where condition() returns True. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] For example, if condition …

python list performance replace
Find and Replace Inside a Text File from a Bash Command

What's the simplest way to do a find and replace for a given input string, say abc, and replace with …

bash ssh replace scripting ironpython
How to search and replace text in a file?

How do I search and replace text in a file using Python 3? Here is my code: import os import sys …

python python-3.x string file replace
Replace specific characters within strings

I would like to remove specific characters from strings within a vector, similar to the Find and Replace feature in …

r regex replace gsub string-substitution
How do I replace a character at a particular index in JavaScript?

I have a string, let's say Hello world and I need to replace the char at index 3. How can I …

javascript string replace character-replacement
How to do a recursive find/replace of a string with awk or sed?

How do I find and replace every occurrence of: subdomainA.example.com with subdomainB.example.com in every text file …

bash sed awk replace
How to replace all dots in a string using JavaScript

I want to replace all the occurrences of a dot(.) in a JavaScript string For example, I have: var mystring = …

javascript string replace
jQuery - replace all instances of a character in a string

This does not work and I need it badly $('some+multi+word+string').replace('+', ' ' ); always gets …

jquery string replace