Top "Replace" questions

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

Notepad++ Regex Backreference syntax in Search/Replace - \1 or $1

I have tried to use the Notepad++ Search/Replace with a Regular Expression to replace specific words with shorter versions …

regex escaping notepad++ replace backreference
Include only certain file types when searching in Visual Studio

Often when I want to search through my code in Visual Studio, I know the thing I'm looking for is …

visual-studio visual-studio-2008 search find replace
Replace '\n' by ',' in java

I want to take input from user as String and replace the newline character \n with , I tried : String test ="…

java string replace replaceall
Remove classname from element with javascript

I found the following regex from another Stack Overflow question: Change an element's class with JavaScript And have used it …

javascript regex replace classname
How to count words in MySQL / regular expression replacer?

How can I, in a MySQL query, have the same behaviour as the Regex.Replace function (for instance in .NET/…

mysql regex replace word-count
mysql: replace \ (backslash) in strings

I am having the following problem: I have a table T which has a column Name with names. The names …

mysql replace backslash
VIM Replace word with contents of paste buffer?

I need to do a bunch of word replacements in a file and want to do it with a vi …

vim replace buffer paste
iPhone - Replacing rootview in navigation controller

I have a project with a NavigationController, that contains into IB the first ViewController to show. That's just the default …

iphone uinavigationcontroller replace root
How to replace all occurrences of one character with two characters using std::string?

Is there a nice simple way to replace all occurrences of "/" in a std::string with "\/" to escape all the …

c++ replace escaping stdstring
Angular Component: no template replace option?

It looks like there is no "replace" option in new AngularJS 1.5 Component concept (like it was for directives). What would …

javascript angularjs replace components