Top "Replace" questions

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

How to replace uppercase with underscore?

I'm new to Python and I am trying to replace all uppercase-letters within a word to underscores, for example: ThisIsAGoodExample …

python regex string replace uppercase
Oracle nclob fields: remove newline (or carriage return) characters

We have information in an Oracle db of type NCLOB, and I want to remove newline characters. This, for example, …

database oracle replace nclob
Remove all characters from string which are not on whitelist

I am trying to write java code which would remove all unwanted characters and let there be only whitelisted ones. …

java regex replace character whitelist
SQLAlchemy - AttributeError: 'Table' object has no attribute replace

I am trying to extract schema from a table in one database and transfer it to another database. The following …

replace sqlalchemy attributeerror unicode-escapes
PHP - Removing the effect of HTML tags in string - BUT displaying them as well?

Consider strip_tags() . strip_tags("<b>TEXT</b>"); Output: TEXT But what if i want to …

php html replace tags strip
How can I do bulk search and replace with Perl?

I have the following script that takes in an input file, output file and replaces the string in the input …

perl replace bulk
Replace commas followed by spaces with commas

How can I replace all commas followed by spaces (", ") with just commas (",")? I don't want to replace spaces when they …

php replace preg-replace
replace plain-text with html using jQuery

I'm trying to write a replacewith function in jQuery that will replace specific words with html. Basically I'm trying to …

jquery html text replace replacewith
Performance about replace() or substr() in Javascript

I was wondering about Javascript performance about using string.replace() or string.substr(). Let me explain what I'm doing. I've …

javascript regex replace slice substr
Replace a string in list of lists

I have a list of lists of strings like: example = [["string 1", "a\r\ntest string:"],["string 1", "test 2: another\r\ntest …

python list python-3.x replace nested-lists