Questions tagged [string-parsing]

The action of retrieving data from a string

String parsing is the action of extracting or modifying data pieces from a string. For example, one might parse a string to remove all quotation marks or to find all items inside quotation marks.

970 questions
-2
votes
1 answer

Passing a char array to int array via a method using Integer.parseInt, and

Thank you in advanced for your help. I am still a beginner java student and I realize there are similar questions, but none specifically answer the question at my level. Essentially a user inputs a long number that requires I treat it like a string,…
jjacobe
  • 33
  • 5
-2
votes
2 answers

I have a a C# List issue to do with searching a string list for an integer value?

I have a list that lists transactions of a bank account, the strings are formatted as: ("Withdrawn" + amount) ("Deposited" + amount) they look like Withdrawn 200 Deposited 200 etc.. In the list, I'm meant to created a method that finds the…
-2
votes
3 answers

Parsing a string to individual words

I'm looking at writing a function that parses a given string input and separates the string into its constituents (as defined by one or more space characters). Unfortunately, I have had no real experience with string parsing, so any help would be…
user5331975
-2
votes
2 answers

Text cleaning python code

My question is different because the answer conveys the deeper problem which is concise code vs forest like variables. I believe I deserve reputation points for pointing out the clarity of concise shortened variable code is for finding the logical…
David Agabi
  • 43
  • 1
  • 8
-2
votes
1 answer

isn't Convert.ToDouble(foo.Text).ToString() pointless?

I was writing some code today and I noticed that Convert has a toString method, now I understand it has this because it inherits from the base object so the question is a little pointless because it inherently just has that built in no matter what,…
Trevor Hart
  • 993
  • 7
  • 26
-2
votes
1 answer

How to parse string to map in java

How to write parser for below string in java "SiteId:BLR232#Latitude:12.918444#Longitude:77.5940136#NetworkType:4g#Type:NONE#Type of Complaint:Call Drop#Sample Number:7022979575#Problem Description:agshjs vshsijsb#" so that result output will be in…
Vishwanath.M
  • 6,235
  • 11
  • 42
  • 56
-2
votes
2 answers

String Parsing in c# for http link

Im trying to parse a string {"Url":"http://repreeapi.cloudapp.net/PublicApi/{ActionName}/f23284d5-90a7-4c41-9bd4-8a47e64b4a75"} I would just like to keep this part and save it as a new…
chillax786
  • 369
  • 4
  • 14
-2
votes
1 answer

Minecraft Color code parser

I am trying to make a minecraft color code parser. I take the original text from a textbox and display the resulting text in the rich textbox. The original text would look something like this: &4Red Here, &4 means the text after that should be red…
wingerse
  • 3,670
  • 1
  • 29
  • 61
-2
votes
2 answers

How to find the number of occurrence of all words in a string

The titles says it all, how do i find how many times a word comes out in a string. I have no idea what the user will input, so i cant test it by using case, can anyone help? Can i also extract only the important words? For example the string…
-2
votes
2 answers

How do I parse a string based on a certain number of characters in the string in C++?

I know how to parse a string based on a delimiter, such as a comma. Does this require turning the string into an array of char? I am wanting to compare a string that is 6 numebrs i.e. 111222 with another string of numbers that is 12 characters long…
WorthAShot
  • 91
  • 1
  • 1
  • 5
-2
votes
3 answers

Parsing a complex number

I am trying to take a complex number input from the user in a form of a char or string like: 88.90-55.16i or -3.67+5i and then convert it to float keeping the same format as above. Not (x,y). char user[100]; vector < float > V; for (int y =…
Bob Jack
  • 3
  • 2
-2
votes
2 answers

Converting Int32 to binary in c++

I'm asking for help here after searching all around the web I'm working on a school project, in Windows Forms, using managed C++. My problem is that I've got an Int32 value and I need to convert it to a binary value using System::Convert but I don't…
Rameleu
  • 105
  • 10
-2
votes
3 answers

Parsing string to array using Regex in c#

im currently making an c# application that receives a string from an serialport, and i need to parse this data so i can do stuff with it. The strings that are send through the SerialPort are formatted like…
-2
votes
3 answers

Reading a text file in a particular way

Let's assume that I have the following input 8 2 I slept long 8 3 5 Students didn't do well 9 1 What should I do? seriously 9 5 I have no idea what to do from now on stored in wow.txt. I wanted to take two integers and the string separately for…
user98235
  • 830
  • 1
  • 13
  • 31