tagged [parsing]

How to write a Parser in C#?

How to write a Parser in C#? How do I go about writing a Parser (Recursive Descent?) in C#? For now I just want a simple parser that parses arithmetic expressions (and reads variables?). Though later ...

13 Oct at 01:47

Parsing Visual Studio Solution files

Parsing Visual Studio Solution files How can I parse Visual Studio solution (SLN) files in .NET? I would like to write an app that merges multiple solutions into one while saving the relative build or...

29 Sep at 15:39

DateTime.ParseExact, Ignore the timezone

DateTime.ParseExact, Ignore the timezone If I have a date such as `2011-05-05T11:35:47.743-04:00` How can I ignore the timezone (-04:00) when I do a DateTime.ParseExact programatically?

13 Jul at 09:52

XML parsing of a variable string in JavaScript

XML parsing of a variable string in JavaScript I have a that contains well-formed and valid XML. I need to use JavaScript code to parse this feed. How can I accomplish this using (browser-compatible) ...

17 Jun at 10:23

Regex date format validation on Java

Regex date format validation on Java I'm just wondering if there is a way (maybe with regex) to validate that an input on a Java desktop app is exactly a string formatted as: "YYYY-MM-DD".

2 Aug at 12:1

C# Casting vs. Parse

C# Casting vs. Parse Which of the following is better code in c# and why? or Ultimately, is it better to cast or to parse?

2 Apr at 08:53

How to convert jsonString to JSONObject in Java

How to convert jsonString to JSONObject in Java I have variable called `jsonString`: Now I want to convert it into JSON Object. I searched more on Google but didn't get any expected answers!

13 Jan at 08:28

How to read and write XML files?

How to read and write XML files? I have to read and write to and from an [XML](http://en.wikipedia.org/wiki/XML) file. What is the easiest way to read and write XML files using Java?

1 Apr at 19:59

Parse v. TryParse

Parse v. TryParse What is the difference between Parse() and TryParse()? Is there some form of error-checking like a Try-Catch Block?

19 Dec at 23:8

Identify if a string is a number

Identify if a string is a number If I have these strings: 1. "abc" = false 2. "123" = true 3. "ab2" = false Is there a command, like `IsNumeric()` or something else, that can identify if a string is a...

29 Jan at 18:23

Evaluate string with math operators

Evaluate string with math operators Is there an easy way to evaluate strings like `"(4+8)*2"` So that you'd get the int value of 24? Or is there a lot of work needed to get this done...?

10 May at 17:38

How to separate full name string into firstname and lastname string?

How to separate full name string into firstname and lastname string? I need some help with this, I have a fullname string and what I need to do is separate and use this fullname string as firstname an...

9 Jul at 18:43

c# Parsing UTC datetime

c# Parsing UTC datetime I am trying to parse 11/23/2011 23:59:59 UTC +0800 as a c# datetime object but trying the standard datetime parse method or even the datetime exact parse I get invalid date. An...

27 Oct at 08:45

In Java, how do I parse XML as a String instead of a file?

In Java, how do I parse XML as a String instead of a file? I have the following code: How can I get it to parse XML contained within a String instead of a file?

15 Mar at 10:16

Parse a string containing date and time in a custom format

Parse a string containing date and time in a custom format I have a string of the next format `"ORDER20100322194007"`, where `20100322` is a date and `194007` is a time. How to parse a string and get ...

25 Jul at 21:33

How to convert URL parameters to a JavaScript object?

How to convert URL parameters to a JavaScript object? I have a string like this: How can I convert it into a JavaScript object like this?

Which parsers are available for parsing C# code?

Which parsers are available for parsing C# code? Which parsers are available for parsing C# code? I'm looking for a C# parser that can be used in C# and give me access to line and file informations ab...

6 Apr at 11:8

Convert XML String to Object

Convert XML String to Object I am receiving XML strings over a socket, and would like to convert these to C# objects. The messages are of the form: How can this be done?

16 Jun at 17:13

How can I split and parse a string in Python?

How can I split and parse a string in Python? I am trying to split this string in python: `2.7.0_bf4fda703454` I want to split that string on the underscore `_` so that I can use the value on the left...

21 Feb at 20:28

How do I export html table data as .csv file?

How do I export html table data as .csv file? I have a table of data in an html table on a website and need to know how to export that data as .csv file. How would this be done?

23 Aug at 12:49

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

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](http://en.cpprefere...

27 Aug at 13:50

What is the best way to parse large XML (size of 1GB) in C#?

What is the best way to parse large XML (size of 1GB) in C#? I have a 1GB XML file and want to parse it. If I use XML Textreader or XMLDocument, the result is very slow and some times it hangs...

9 Dec at 02:13

HTML-parser on Node.js

HTML-parser on Node.js Is there something like Ruby's [nokogiri](http://nokogiri.org) on nodejs? I mean a user-friendly HTML-parser. I'd seen on Node.js modules page some parsers, but I can't find som...

30 Dec at 13:13

Best/fastest way to write a parser in c#

Best/fastest way to write a parser in c# What is the best way to build a parser in c# to parse my own language? Ideally I'd like to provide a grammar, and get Abstract Syntax Trees as an output. Many ...

18 Nov at 19:18

How to convert comma-delimited string to list in Python?

How to convert comma-delimited string to list in Python? Given a string that is a sequence of several values separated by a commma: How do I convert the string to a list?

10 Oct at 16:30