Top "Replace" questions

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

Replace "\\" with "\" in a string in C#

I still don't get how to do this. I saw many posts regarding this, but none of the solutions worked …

c# string replace backslash
MySql Query Replace NULL with Empty String in Select

How do you replace a NULL value in the select with an empty string? It doesnt look very professional to …

mysql string replace null
How to replace negative numbers in Pandas Data Frame by zero

I would like to know if there is someway of replacing all DataFrame negative numbers by zeros?

python pandas dataframe replace negative-number
PowerShell Script to Find and Replace for all Files with a Specific Extension

I have several configuration files on Windows Server 2008 nested like such: C:\Projects\Project_1\project1.config C:\Projects\Project_2\project2.…

powershell scripting replace find
Find and replace - Add carriage return OR Newline

In the case of following string to be parsed. ford mustang,10,blue~~?bugatti veyron,13,black I want to replace the ~~? …

visual-studio replace carriage-return
Removing spaces from string

I'm trying to remove all the spaces from a string derived from user input, but for some reason it isn't …

android string replace trim
Java Replace Character At Specific Position Of String?

I am trying to replace a character at a specific position of a string. For example: String str = "hi"; replace …

java string replace char
How do you replace double quotes with a blank space in Java?

For example: "I don't like these "double" quotes" and I want the output to be I don't like these double …

java replace quotes regex
PHP remove commas from numeric strings

In PHP, I have an array of variables that are ALL strings. Some of the values stored are numeric strings …

php string replace numbers comma
Java Replace Line In Text File

How do I replace a line of text found within a text file? I have a string such as: Do …

java replace line jcheckbox