Questions tagged as 'replace'

2
answers

problems in insert in classic asp (replace)

People, in my database, the column is set to numeric (18,2) Then I have a field in a form that the person types the value and it goes to my table. insert looks like this: entrada = Replace(Request.form("entrada"),",",".")...
asked by 26.09.2018 / 17:29
0
answers

How do I do the direct treatment in the Laravel model both set and get? [closed]

I'm working on an already populated database and I'm having to replace , with . and / with - without resorting to the frontend only in the model.     
asked by 13.11.2018 / 22:21
1
answer

How to change row in text file in C #?

I currently report on the variable stringantiga the exact value to find and replace it. Is there any way to substitute for the line number instead of the exact value of stringantiga ? string arquivo = ConfigurationSettings.AppS...
asked by 16.02.2018 / 16:03
1
answer

Replace one symbol with another in PHP

I'm trying to replace all the signals from + to vírgula with PHP. I'm doing it this way: $q = $_GET['q']; $string = str_replace("+",",","$q"); This is removing the sign from + , but it returns an empty space instead of t...
asked by 19.11.2017 / 02:06
0
answers

How to make multiple mask replaces per T-SQL table field

I'm doing replaces of some texts (Mask) of a field of a temporary table. I'm replacing where text is searched for by a field from other tables. Example: SELECT TOP 1000 * INTO #TEMP_COMPL_L FROM TB_CONTRATO WHERE IDCAR_CON = 1 ALTER TABLE #...
asked by 13.07.2017 / 17:56
3
answers

Replace is not a function

I created a script to insert a div into the cart in my store, but it is giving it an error in the replace function. Would anyone know why? var $JQuery = jQuery.noConflict(); $JQuery(function(){ var ValorFreteGratis = 299; var PrecoTotal = '{{...
asked by 17.02.2017 / 17:26
1
answer

Find character position in string and remove it

I have a complicated problem to solve, there are 3 types of variables that receive data via post example: $mes = "08"; $mes = "10"; $mes = "12"; In the case of 3 different string types, I need 0 to be removed when it is the first...
asked by 27.11.2017 / 07:52
1
answer

REPLACE in the IN clause - MySQL

I have the following query below, the idea is to get the value of the variable @subcategories and put in the IN of the query: set @subcategorias = replace('10, 11, 29, 30, 31', '''', ''); SELECT car.NomeCaracteristica, MAX(catcar.Valor) AS V...
asked by 04.02.2017 / 00:32
3
answers

Swap String contents for "$"

I have a String with a content and I need to do a replaceAll, however the text to be replaced contains a dollar sign "$" and this causes the error Illegal group reference . Example: String texto="teste {{texto}} teste"; String...
asked by 08.03.2017 / 21:27
1
answer

Replace items in a list in a column of a dataframe

I'm trying to replace names that are in a list in a column of a large dataframe. I'm trying this way, but it's not working ... List of names (the list is too large): Jack Liam John Ethan George ... Small dataframe example: A...
asked by 29.10.2018 / 12:05