I'm trying to exclude control strings from (\n, \t, \u) of strings in Python and I can not do it with either replace or re.sub() . How could I do it?
I've tried, and they have not worked:
p = re.sub('\n', '', p)
p.repl...
I have a problem - when using a component for PDF - I ended up having an "Out of Range" error when generating the PDF document.
I found the problem with the error line and found that the error was because the user registered a "SLOT" in the s...
Hello! I am extremely new to programming, so I apologize if I can not explain what I am trying to do or if my code is very wrong. I have a recurring task in my job which is to open a list of restaurants in Ifood, collect the prices of each of th...
How to do a replace between columns in SQL SERVER. For example, given the table below:
COLUNA_A | COLUNA B | COLUNA_C
A 123 casa
I tried to run the query:
SELECT REPLACE(COLUNA_C, COLUNA_A, COLUNA_B ) FROM TABELA
To try...
I have an array in PHP that is the values selected from the checkbox, which were obtained by $ _GET:
$_GET['selecionados'] = array(2) {
[0]=> string(1) "a"
[1]=> string(1) "b"
}
Here are the chekboxes:
foreach($selecoes = $check...
I'm trying to create a regular expression to remove everything that is not part of the business name in a string, but I'm having trouble not removing the symbols that are in the middle of it.
Entry:
201700000000111 01/02/2017 11.111.111/000...
I'm having trouble creating a file with the following template:
2017-01-17T09:42:15.3419026-02:00_teste.txt
When I run the application to create, this message appears:
The given path format is not supported.
var dataHora = DateTimeOffs...
How can I make Replace using a variable?
A given variável receives values from a query, so I need to make a Replace in a given column, with the values obtained, how can I do this? follow example in fiddle:
link
...
Good,
I needed to do something that in a document filled out for example like:
linha1 bla bla
linha2 bla bla
linha3 bla bla
linha4 bla bla
linha5 bla bla
linha6 bla blax
linha7 bla bla
linha8 bla bla
linha9 bla bla
When doing a search fo...
Hi, I'm starting to create an interpreter of equations, I want to replace operators with words, but things are not going well ...
main.cpp
#include <string>
#include <iostream>
#include <fstream>
#include <vector&...