Questions tagged as 'replace'

2
answers

Convert utf-8 codes to unicode

Well, I have a JSON where all unicode symbols like this "★" are in this format: "\ u2605" have some way to convert those codes to the symbols when my program NodeJS read the JSON ? Example of how it is: {"name":"\u2605 Bayonet","pri...
asked by 24.08.2017 / 16:47
1
answer

César Cipher Doubt JavaScript

Hello, I'm new to JavaScript and had a problem with this code: <!DOCTYPE html> <html> <head> <title>Caesar Cipher</title> <meta charset="UTF-8"> <style> button {...
asked by 06.05.2018 / 18:41
0
answers

Replacing characters in SQl Server tables

I need to replace some strings in a database. I AM TRYING WITH: UPDATE dbo.ModeloMensagem SET corpoMensagem = REPLACE(dbo.ModeloMensagem.corpoMensagem, '<', '[') WHERE dbo.ModeloMensagem.corpoMensagem IN (SELECT DISTINCT(dbo.CampoTipoMen...
asked by 11.04.2018 / 15:19
0
answers

Error in String.replace Java

I'm having a hard time running String.replace("á","a") In my case I type canada and I want the canada exit, but in the output it appears instead of a square, as if there were an invalid character there.     
asked by 26.03.2018 / 05:30
0
answers

Include semicolon to a variable [duplicate]

Hello, I have a small problem, I have a number coming from a sum and I need to assign a mask to that number. I did some tests until it worked though the mask was not correct to the number. var format = function (format, text) { var arr...
asked by 21.08.2017 / 19:28
1
answer

PHP: Replace only the first word repeated [closed]

Hello, for example, I have the phrase:    My name is "Vitor", the name "his" "is" "Vitor", "his" name is "" Victor " I use a preg_replace to change all words that are surrounded by the word "pineapple". I would stay:    My name is "pi...
asked by 05.06.2017 / 06:07
1
answer

Appear two decimal places

In this code I have, when value reaches 200.00 ... it shows 200, when it has decimal places, it shows the decimal places ... 200.55 = 200.55 However, I need it to show the two decimal places even if it is "10.00", "00" after the dot ... An...
asked by 17.05.2018 / 04:20
3
answers

Replace space with Comma

$var = 123 456 789; I need the value of this variable to be: $var = 123,456,789; Or add a comma after the number: $var = 123, 456, 789; I tried this way: str_replace($var," ","")     
asked by 11.10.2018 / 03:45