Top "Replace" questions

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

Case-insensitive search and replace with sed

I'm trying to use SED to extract text from a log file. I can do a search-and-replace without too much …

macos replace sed case-insensitive
How do I replace the *first instance* of a string in .NET?

I want to replace the first occurrence in a given string. How can I accomplish this in .NET?

c# .net regex string replace
how to replace special characters with the ones they're based on in PHP?

How do I replace: "ã" with "a" "é" with "e" in PHP? Is this possible? I've read somewhere I could do some …

php string replace special-characters character-encoding
Insert space before capital letters

I have a string "MySites". I want to place a space between My and Sites. How can I do this …

javascript jquery regex string replace
c# Fastest way to remove extra white spaces

What is the fastest way to replace extra white spaces to one white space? e.g. from foo bar to …

c# string replace whitespace removing-whitespace
Find and Replace symbol for whole project intellij?

In IntelliJ IDEA, is there an option to find and replace a symbol for whole project with on time operation?

java intellij-idea replace find intellij-14
How to search and replace globally, starting from the cursor position and wrapping around the end of file, in a single command invocation in Vim?

When I search with the / Normal-mode command: /\vSEARCHTERM Vim starts the search from the cursor position and continues downwards, wrapping …

search vim replace
C# hexadecimal value 0x12, is an invalid character

I am loading a lot of xml documents and some of them return errors like "hexadecimal value 0x12, is an …

c# regex replace xmldocument
Case insensitive string replacement in JavaScript?

I need to highlight, case insensitively, given keywords in a JavaScript string. For example: highlight("foobar Foo bar FOO", "foo") …

javascript string replace case-insensitive
Replace a Regex capture group with uppercase in Javascript

I'd like to know how to replace a capture group with its uppercase in JavaScript. Here's a simplified version of …

javascript regex replace uppercase