Top "Parsing" questions

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

Remove file extension from a file name string

If I have a string saying "abc.txt", is there a quick way to get a substring that is just "…

c# string parsing
Read a XML (from a string) and get some fields - Problems reading XML

I have this XML (stored in a C# string called myXML) <?xml version="1.0" encoding="utf-16"?> <myDataz xmlns:…

c# .net xml parsing xml-parsing
XML parsing of a variable string in JavaScript

I have a variable string that contains well-formed and valid XML. I need to use JavaScript code to parse this …

javascript xml parsing
Python code to remove HTML tags from a string

I have a text like this: text = """<div> <h1>Title</h1> <p>…

python html xml string parsing
Extracting an attribute value with beautifulsoup

I am trying to extract the content of a single "value" attribute in a specific "input" tag on a webpage. …

python parsing attributes beautifulsoup
How to avoid warning when introducing NAs by coercion

I generally prefer to code R so that I don't get warnings, but I don't know how to avoid getting …

r parsing casting na
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 …

c++ parsing
How can I parse a String to BigDecimal?

I have this String: 10,692,467,440,017.120 (it's an amount). I want to parse it to a BigDecimal. The problem is that I …

java string parsing bigdecimal decimalformat
Using C# regular expressions to remove HTML tags

How do I use C# regular expression to replace/remove all HTML tags, including the angle brackets? Can someone please …

c# html regex parsing
How to do an Integer.parseInt() for a decimal number?

The Java code is as follows: String s = "0.01"; int i = Integer.parseInt(s); However this is throwing a NumberFormatException... What …

java parsing integer