Showing posts with label parsing. Show all posts
Showing posts with label parsing. Show all posts

Wednesday, May 16, 2012

Best way to parse a text document


I'm trying to parse a plain text document in PHP but have no idea how to do it correctly. I want to separate each word, assign them an ID and save the result in JSON format.

Tuesday, May 15, 2012

Is there a lax, permissive XML parser for PHP?


I'm looking for a parser that will allow me to successfully parse broken xml, taking a "best guess" approach - for instance.

How to scrape specific data from scrape with simple html dom parser


I am trying to scrape the datas from a webpage, but I get need to get all the data in this link .

Monday, May 7, 2012

HTML/XML Parser for Java


What HTML parsers have the following features:



  • Fast

  • Thread-safe

  • Reliable and bug-free

  • Parses HTML and XML

  • Handles erroneous HTML

  • Has a DOM implementation

  • Supports HTML4, JavaScript, and CSS tags

  • Relatively simple, object-oriented API

Friday, May 4, 2012

I Need a Human Readable, Yet Parse-able Document Format


I'm working on one of those projects where there are a million better ways to accomplish what I need but I have no choice and I have to do it this way. Here it is:

Wednesday, April 25, 2012

Looking for a Java User Agent String Parser


Does anyone know of a great library in java for parsing user agent strings? We have written a custom one, but this seems like a common problem for many people. I would guess there is a good library available somewhere.

Monday, April 23, 2012

The correct Javascript Date.parse(…) format string?


What is a culture-invariant way of constructing a string such that the Javascript Date() constructor can parse it and create the proper date object?

Tuesday, April 3, 2012

Objective C parse hex string to integer


I would like to know how to parse a hex string, representing a number, in objective c. I am willing to use both an objective, or a C based method, either is fine.

Tuesday, February 28, 2012

How to parse & print get a element by element from xml in objective C? [closed]


I would like to parse an xml online & get it printed element by element of a single tag in iphone.I don't want it to be tabulated into UITableView,how can I do that.Please help me with an example on this which will be very much helpful.Thanks.

Tuesday, February 21, 2012

Parsing JSON Feed iOS 5


I'm pretty new to iOS development, and I'm wanting to parse the values of a JSON twitter feed, so I can pull them through into a tableView.

Sunday, January 29, 2012

How to extract relative URL from argument values from request string?


I have a request url / string var like http://ip_or_url:4773/image_renderer.service?action=resize&from_format=png&from_url=http://ip_or_url:4773/my_file.user.file&to_format=jpg&w=1920&h=1200 It looks terribly scary. I wonder how to extract from_url=http://195.19.243.13:4773/my_file.user.file argument pair from it and then extract relative file url from that pair value my_file.user.file ?

Needing to expand this regex URL/mail parser a bit further



function make_clickable($text)
{
$ret = ' ' . $text;
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<]*)#ise", "'\\1<a href=\"\\2\" >\\2</a>'", $ret);
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#ise", "'\\1<a target=\"_blank\" href=\"http://\\2\" >\\2</a>'", $ret);
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_\.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);
$ret = substr($ret, 1);
return($ret);
}


Posting Data to Amazon using curl


when we enter a keyword (search term) in amazon kindle book store, search brings a list of books back.