Top "Str-replace" questions

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.

how to replace "(double quotes) in a string with \" in java

I have string variable strVar with value as ' "value1" ' and i want to replace all the double quotes …

java string replace str-replace
I have a string with "\u00a0", and I need to replace it with "" str_replace fails

I need to clean a string that comes (copy/pasted) from various Microsoft Office suite applications (Excel, Access, and Word), …

php encoding str-replace
PHP string replace match whole word

I would like to replace just complete words using php Example : If I have $text = "Hello hellol hello, Helloz"; and …

php string replace str-replace
Replace string in an array with PHP

How can I replace a sub string with some other string for all items of an array in PHP? I …

php arrays str-replace replace
String.replaceAll() is not working

I am editing some email that got from tesseract ocr. Here is my code: if (email != null) { email = email.replaceAll(" ", ""); …

java string str-replace
Python string.replace() not replacing characters

Some background information: We have an ancient web-based document database system where I work, almost entirely consisting of MS Office …

python string str-replace
Removing Dollar and comma from string

How can we remove dollar sign ($) and all comma(,) from same string? Would it be better to avoid regex? String …

java regex str-replace
How to remove brackets from string in php?

I have the following string and would like to use str_replace or preg_replace to remove the brackets but …

php string preg-replace str-replace
String replace all items in array PHP

I would like to do a string replacement in all items in an array. What I have is: $row['c1…

php string replace foreach str-replace
Regex str_replace

Would it be possible to incorporate a str_replace method with a regular expression, designed to catch url strings in …

php mysql regex url str-replace