Questions tagged as 'replace'

1
answer

How do I remove everything after the first word?

I would like to remove everything after the first word in each line of this text document. It works for simple character removal, but does not work when I try to remove the "|" of the text file. I'mtryingtousethefollowingcode:setlocalenablee...
asked by 29.09.2017 / 00:32
1
answer

Replace is not working C #

I'm replacing one code with another in each line that the code is found. But the replace simply does not work, it goes through it and the line continues the same way. As you can see in the image below, if used within the immediate, it appears to...
asked by 10.01.2017 / 13:47
1
answer

Replace ignoring tag and returning as string

I think I've seen this problem here once, but I could not find it at all or search the internet (I forgot what words to use in the search because I think I've dealt with it before but it gave me a total blank). > I'm making a replace of...
asked by 16.02.2018 / 17:49
2
answers

Replace specific column values by NA

I would like to detect and replace values above 6 in just a few columns of a data.frame by NA. I did the syntax like this but it is giving error ... Could anyone give me a help? Thanks! data <- apply(dados[14:128], 2, function(x) {x[x >...
asked by 05.06.2018 / 22:56
1
answer

search and replace string javascript

I have the following syntax: var json_pessoa = JSON.stringify(json_pessoa["pessoa"]); // o valor do json_pessoa é "{"razao_social":"asd","nome_fantasia":"asd","rg_insc_estadual":"asd"}" , ele já é iniciado com as aspas var json...
asked by 26.06.2017 / 17:52
2
answers

Regex or Replace in Jquery

How do I change a string by adding new content? Example: <div><span id="number">1195555666<span><div> <script>var newNumber = $(#number).replace('(11)95555-6666')</script> console.log(newNumber); But...
asked by 20.05.2018 / 15:46
2
answers

SQL Server - Change information in a text field (REPLACE does not work)

Helloeveryone.IhaveatablewithaTEXTfield.IneedtochangeaninformationwithinthistextfieldbutIcannotdoit.TheREPLACEfunctionworksinavarcharfield,butdoesnotworkwithinthetextfield.Forexample:Ihavearecordwherethisfieldcontainsthefollowinginformation:"IN...
asked by 09.01.2018 / 10:03
1
answer

Remove single quotes from javascript

I need to remove single quotation marks from a string, I've already tried string.replace(/\'/g, '') .replace(/"'"/g, '') and it does not work, can anyone help me?     
asked by 09.11.2017 / 17:54
1
answer

C # - Remove ASPAS - Replace - Remove ASP Double

I have a variable (TEXT) that is a string, where its value is: "06/22/2018 00:00:00" How to make a Replace by removing its quotation marks?     
asked by 22.06.2018 / 21:09
2
answers

Remove data from within a String

In java I'm reading several lines from an HTML file and in it I have to pull some data and store in variables. And to remove this data I have to remove some tags and data that are within certain patterns. For example, to remove the tags I use...
asked by 09.09.2017 / 14:32