How can I format this String : 12345678x for this: 12.345.678-X?
I tried to use String.Format but I could not.
Resolved:
public string RgFormat(object rg)
{
string strRg = rg.ToString();
return strRg.Substring(0, 2) + "."...
I need to check if a term exists inside a string (in SQL it is something like like '%termo%' ).
The point is that I need to do this without considering the casing of the two strings .
How can I do this? Is there something nat...
I need to look up a string if it has a + character, like this:
teste = teste.replaceAll("+", "e");
but I get this error:
java.util.regex.PatternsSyntaxException: Dangling meta character '+'
I am getting in my java code a variable with the following value
String arquivo = "CNPJ;INSCRICAOESTADUAL;COD_IBGE;DT_OPE;VLR_CARTAO_CRED;VLR_CARTAO_DEB
35083840049;0;4312476;13/01/2018;0.00;66.00
35083840049;0;4312476;18/01/2018;33.00;26.00
3...
I know I can concatenate strings with += , + , join() and append() . All of them give me the same result when I concatenate two strings.
What is the best way to concatenate strings in Python? What is the difference be...
I'm programming in Java and need to filter a String from a regex using the matches() method.
I can accept letters (a-z) or numbers (0-9), where this number can have 1 or n digits. I'm using the following regex: [A-Z|a-z|\d{n} ] ....
I have a set with certain strings, it's a vector, I need to do character searches in this set.
Case:
Be V my set of strings contemplated by: ["ana", "paula", "cris", "voa", "karmanguia"];
Be P my search, I want to c...
Why does char store a single character and the pointer points to its value in memory, so should it not have only one character? Example:
char *str = "Ola";
Why str does not store just one character?
Problem: Sometimes I get an entry like
(andtheinputcontinues)othertimesas: (andtheinputcontinues)Thatis,Icanreceiveaninteger,ortwo,orthree,andthenlaterreceiveastringtodoanything.Myproblem:Icannotsetwhentostopreceivingtheintegers.Itriedtoiden...