Questions tagged as 'replace'

1
answer

Remove tags generated at the end of the string of a Text Editor

I'm using a text editor and like others I've used, it always generates some useless tags that I'd like to remove. I can remove the last one, but sometimes it generates more than once. My code: def remove_useless_tags(message): message =...
asked by 09.11.2018 / 21:06
2
answers

Replace string with regex in python 3

I have a code that overrides certain string by whitespace dados = '[{"Id":12345,"Date":"2018-11-03T00:00:00","Quality":"Goodão","Name":"X","Description":null,"Url":"x.com.br/qweqwe","ParseUrl":"x-art","Status":"Ativa","Surveys":0,"KeySearc...
asked by 05.11.2018 / 00:40
2
answers

Change tab of the fields of a MacAddress

I would like to implement an event that would correct data that would come out of the standard, replacing the separator with : and putting the letters in lowercase. For example, the user types 00-25-66-F0-21-11 , would be corrected...
asked by 04.12.2018 / 18:16
2
answers

Doubt to use Replace along with Inner Join

I'm using Inner Join to combine two tables: SELECT eventos.colab_id, colaboradores.setor FROM colaboradores INNER JOIN eventos ON colaboradores.id = eventos.colab_id So far so good, however I have cases where I need to delete the...
asked by 31.10.2018 / 17:53
2
answers

Find and Replace in bash

I need to find outdated rows in a csv file and replace them with new rows. These are the commands that find the lines that are going to be replaced (old) and that will replace (new) lines. linhas_antigas=$(diff -y arquivo_com_linhas_antigas...
asked by 21.06.2018 / 20:12
1
answer

How to remove words between braces {} in the field in Mysql?

I have a table that contains a field with some values in braces, how do I exclude the chaves and the valores that are inside them? Example: cod | Movimento | 01 | Prazos {aguardando} | Prazos {aguardando}...
asked by 20.11.2017 / 11:39
1
answer

Add character in an input

The person types their height (which always has three digits). I want autocomplete, example: - The person types- 200 And the software will convert to 2.00     
asked by 28.10.2017 / 07:54
1
answer

How to replace string using another string containing Json?

Is there any way to do a replace of a String with the fields of another string that contains a Json? Example; I have the string; String template = "Olá [Nome], Tenha um bom dia ... hoje é [Data] e é seu aniversario"; And in the other...
asked by 18.01.2018 / 20:07
1
answer

Traverse all properties of a VueJS object

I'm using VueJS in a project and I need to go through all the properties of the object associated with v-model . I know that if it were an array I could use u for , foreach , map and many other ways to go through it....
asked by 02.10.2017 / 14:20
1
answer

Replace with \ does not work

I'm trying to make a Replace() but it does not work. I need to change from \ to \ . "\r\n".Replace(@"\", "\"); It only returns me: "\r\n" and not "\r\n" .     
asked by 04.12.2017 / 19:59