Questions tagged as 'string'

3
answers

How to select a piece of Java string?

I have String x = "@646646&" . I would like to get everything between @ and & and play on other String . Regardless of what is between these characters be number or not. How do I do it?     
asked by 29.03.2017 / 15:14
3
answers

String handling in alternate positions

I have an output via EXPECT access to an equipment and I get the data below: $result1 = " =============================================================================== Service Basic Information...
asked by 12.06.2017 / 22:17
3
answers

How can I separate a string eg 36529874 two by two without having any separation character eg 36.52.98.74

I'm getting the IMEI from the phone and I have to split it into groups of 2 characters so I convert them to hex afterwards. This String comes with no separator, the numbers come together, for example 36529874 and I wanted to separate them int...
asked by 30.03.2015 / 18:42
3
answers

How to count characters from a reference in Java?

Example I have some character 123456789.123456789 . How to count to . after . count again remembering that the point should not be counted.     
asked by 11.03.2015 / 14:39
2
answers

Generate a string that only contains the numbers of another string in php

I made the following function in php that receives a string, and returns a new string containing only the numbers of the received string. I just can not concatenate each number to this new string. I've tried the following: function extraiSo...
asked by 03.06.2018 / 19:41
4
answers

I need different ways to rearrange characters within a string, how do I do this?

I would like answers in C, C #, or just an algorithm, but preferably an implementation already in the C # language because that's what I'm using. For example, suppose I have to find out if a number is read in the same way both ways - a silly...
asked by 07.09.2015 / 20:57
3
answers

Problems with "strcpy" locking program

I'm solving an exercise where I have to fill a vector of type struct , and one of the values is char , so I made a while and was using a simple assignment with "=" but was not working , so I did with strcpy but every ti...
asked by 28.08.2015 / 01:49
3
answers

Doubt with Python's str.replace () method

I have the following text:    'box 1 is blue, box 10 is green, box 100 is empty' I want to replace 'box 1' with 'package 2', so I do: >>> texto = 'caixa 1 é azul, caixa 10 está verde, caixa 100 está vazia' >>> print(te...
asked by 30.08.2015 / 19:49
2
answers

What does the dereferenced compilation error in Java mean?

In a test code (in Java), the purpose of which was to convert a string to another string by intersecting the letters between uppercase and lowercase letters, I received the error a follow at compile time:    error: char can not be derefer...
asked by 28.12.2014 / 21:51
1
answer

What is the purpose of the Uri class?

What is the Uri class and what is its purpose and where should I use it? Can not pass an object from it to a string variable see in the example: String caminho = new Uri(@"c:\Windows"); Generate the following error:    Error 1...
asked by 10.03.2016 / 01:30