Top "Replace" questions

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

How to replace all occurrences of a string?

I have this string: "Test abc test test abc test test test abc test test abc" Doing: str = str.replace(…

javascript string replace
Renaming columns in pandas

I have a DataFrame using pandas and column labels that I need to edit to replace the original column labels. …

python pandas replace dataframe rename
How can I remove a character from a string using Javascript?

I am so close to getting this, but it just isn't right. All I would like to do is remove …

javascript string replace character
finding and replacing elements in a list

I have to search through a list and replace all occurrences of one element with another. So far my attempts …

python list replace
UPDATE and REPLACE part of a string

I've got a table with two columns, ID and Value. I want to change a part of some strings in …

sql sql-server string sql-server-2008 replace
Replace a character at a specific index in a string?

I'm trying to replace a character at a specific index in a string. What I'm doing is: String myName = "domanokz"; …

java string replace indexing character
How can I replace text with CSS?

How can I replace text with CSS using a method like this: .pvw-title img[src*="IKON.img"] { visibility:hidden; } Instead …

css text replace
Python string.replace regular expression

I have a parameter file of the form: parameter-name parameter-value Where the parameters may be in any order but there …

python regex replace
How to replace a character by a newline in Vim

I'm trying to replace each , in the current file by a new line: :%s/,/\n/g But it inserts what …

vim replace escaping newline vi
Fastest method to replace all instances of a character in a string

What is the fastest way to replace all instances of a string/character in a string in JavaScript? A while, …

javascript string replace