Top "Replace" questions

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

In Vim is there a way to delete without putting text in the register?

Using Vim I often want to replace a block of code with a block that I just yanked. But when …

vim replace vim-registers
How can I replace the text in JSON string with a userscript for Greasemonkey

I want to create a user script for Greasemonkey in Firefox without using jQuery, which can replace old text by …

javascript html json replace userscripts
How to replace a single word under cursor?

How do I replace a word under the cursor in Vim. So instead of using dw then i then the …

vim replace
Replace all instances of character in string in typescript?

I'm trying to replace all full stops in an email with an x character - for example "my.email@email.…

javascript string typescript replace global
Removing Whitespace From a Whole Data Frame in R

I've been trying to remove the white space that I have in a data frame (using R). The data frame …

r replace whitespace gsub
How to include forward slash in vi search & replace

I have a file that contains the string usrbin. I want to search for usrbin and replace it with /usr/…

search vim replace vi
How can I replace a window's URL hash with another response?

I am trying to change a hashed URL (document.location.hash) with the replace method, but it doesn't work. $(function(){ …

javascript jquery hash replace attr
SQL Replace multiple different characters in string

I need to replace multiple characters in a string. The result can't contain any '&' or any commas. …

sql replace sql-server-2016
Notepad++ Replace regex match for same text plus appending character

I have a file with text and numbers with a length of 5 (i.e. 12000, 11153, etc.). I want to append all …

regex replace notepad++
Using jQuery to replace one tag with another

Goal: Using jQuery, I'm trying to replace all the occurrences of: <code> ... </code> with: <pre&…

javascript jquery replace