Top "Parsing" questions

Parsing refers to breaking an artifact into its constituent elements and capturing the relationship between those elements.

Parsing a comma-delimited std::string

If I have a std::string containing a comma-separated list of numbers, what's the simplest way to parse out the …

c++ string parsing stl csv
How to escape braces (curly brackets) in a format string in .NET

How can brackets be escaped in using string.Format. For example: String val = "1,2,3" String.Format(" foo {{0}}", val); This example doesn't …

c# .net string parsing formatting
What's the best practice using a settings file in Python?

I have a command line script that I run with a lot of arguments. I have now come to a …

python parsing configuration yaml settings
How to parse a JSON string into JsonNode in Jackson?

It should be so simple, but I just cannot find it after being trying for an hour #embarrasing. I need …

java json parsing jackson
JSONException: Value of type java.lang.String cannot be converted to JSONObject

I have a JSON file with 2 JSON-Arrays in it: One Array for routes and one Array for sights. A route …

android json parsing
Get all Attributes from a HTML element with Javascript/jQuery

I want to put all attributes in a Html element into an array: like i have a jQuery Object, whichs …

javascript jquery attributes parsing
In Java, how do I parse XML as a String instead of a file?

I have the following code: DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(xmlFile); How can I get it to parse XML contained within …

java xml string file parsing
Extracting Path from OpenFileDialog path/filename

I'm writing a little utility that starts with selecting a file, and then I need to select a folder. I'd …

c# .net parsing path
How to join multiple lines of file names into one with custom delimiter?

I would like to join the result of ls -1 into one line and delimit it with whatever i want. …

linux bash shell parsing merge
Python/Json:Expecting property name enclosed in double quotes

I've been trying to figure out a good way to load JSON objects in Python. I send this json data: {…

python json parsing