Top "Replace" questions

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

htmlentities in PHP but preserving html tags

I want to convert all texts in a string into html entities but preserving the HTML tags, for example this: &…

php html string replace html-entities
Trying to do LOAD DATA INFILE with REPLACE and AUTO_INCREMENT

I am trying to load a file onto a MySQL database, having the primary key auto_incremented and I would …

mysql replace auto-increment load-data-infile
How to replace ' or any special character in when using XMLELEMENT Oracle

I have the below query. How to keep the apostrophe (') intact and not getting it replaced by &apos …

sql xml oracle replace xmlelement
R: Replace multiple values in multiple columns of dataframes with NA

I am trying to achieve something similar to this question but with multiple values that must be replaced by NA, …

r replace dataframe multiple-columns
scala regex group matching and replace

val REGEX_OPEN_CURLY_BRACE = """\{""".r val REGEX_CLOSED_CURLY_BRACE = """\}""".r val REGEX_INLINE_DOUBLE_QUOTES = """\\\"""".r val REGEX_…

regex scala replace regex-group
How does the "replace" property work with composer?

So how does the "replace" property work with composer? I have read the composer document but still not understand it. …

replace composer-php package-managers
javascript encodeURIComponent and converting spaces to + symbols

I would like to encode my URL, but I want to convert spaces to plus symbols. This is what I …

javascript regex replace encodeuricomponent
Apache StringUtils vs Java implementation of replace()

What would be the difference between Java 1.4.2's implementation of replace, and Apache 2.3's implementation? Is there a performance gain …

java replace apache-stringutils
Perl replace multiple strings simultaneously

Is there any way to replace multiple strings in a string? For example, I have the string hello world what …

regex arrays perl replace string-literals
How to remove carriage return in a dataframe

I am having a dataframe that contains columns named id, country_name, location and total_deaths. While doing data cleaning …

python pandas replace carriage-return data-cleaning