Parsing refers to breaking an artifact into its constituent elements and capturing the relationship between those elements. This tag isn't for questions about the hosted service Parse.com (use [parse.com]) or parse errors in a particular programming language (use the appropriate language tag instead)...

430
votes
13answers
354k views

PHP Parse/Syntax Errors; and How to solve them?

Everyone runs into syntax errors. Even experienced programmers make typos. For newcomers it's just part of the learning process. However, it's often easy to interpret error messages such as: PHP ...
1807
votes
28answers
345k views

How do you parse and process HTML/XML in PHP?

How can one parse HTML/XML and extract information from it?
679
votes
28answers
1.0m views

How to parse JSON in Java

I have the following JSON text. How can I parse it to get pageName, pagePic, post_id, etc.?{"pageInfo": {"pageName": "abc","pagePic": "http://example.com/content.jpg"}...
1457
votes
16answers
1.7m views

Parse JSON in JavaScript? [duplicate]

I want to parse a JSON string in JavaScript. The response is something likevar response='{"result":true,"count":1}';How can I get the values result and count from this?
51
votes
4answers
389k views

How to parse JSON in Android

Where can I find step-by-step instructions on how to parse a JSON feed in Android? I'm just an Android beginner wanting to learn.
155
votes
8answers
48k views

Regular expression pattern not matching anywhere in string

I am trying to match <input> type “hidden” fields using this pattern:/<input type="hidden" name="([^"]*?)" value="([^"]*?)" />/This is sample form data:<input type="hidden" name="...
184
votes
31answers
233k views

How can I read and parse CSV files in C++?

I need to load and use CSV file data in C++. At this point it can really just be a comma-delimited parser (ie don't worry about escaping new lines and commas). The main need is a line-by-line parser ...
66
votes
15answers
367k views

What is the best way to parse html in C#? [closed]

I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries.
74
votes
6answers
43k views

Is there an alternative for flex/bison that is usable on 8-bit embedded systems?

I'm writing a small interpreter for a simple BASIC like language as an exercise on an AVR microcontroller in C using the avr-gcc toolchain. However, I'm wondering if there are any open source tools ...
219
votes
6answers
343k views

How to read XML using XPath in Java

I want to read XML data using XPath in Java, so for the information I have gathered I am not able to parse XML according to my requirement.here is what I want to do:Get XML file from online via ...
939
votes
7answers
1.7m views

Parsing values from a JSON file?

I have this JSON in a file:{"maps": [{"id": "blabla","iscategorical": "0"},{"id": "blabla","iscategorical": "0"...
343
votes
26answers
358k views

Remove HTML tags from a String

Is there a good way to remove HTML from a Java string? A simple regex like replaceAll("\\<.*?>","") will work, but things like &amp; wont be converted correctly and non-HTML between ...
129
votes
11answers
152k views

Sending and Parsing JSON Objects [closed]

I would like to send messages in the form of JSON objects to a server and parse the JSON response from the server.I thought of this format for the response from the server:{"post": {"...
39
votes
5answers
184k views

How can I fix MySQL error #1064?

When issuing a command to MySQL, I'm getting error #1064 "syntax error".What does it mean?How can I fix it?
228
votes
17answers
178k views

How to parse a string to an int in C++?

What's the C++ way of parsing a string (given as char *) into an int? Robust and clear error handling is a plus (instead of returning zero).

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,