This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Paul's Time Sink

| Main | Albums |

regular expressions in Cocoa

Paul Westbrook | 09 March, 2006 22:19

I don't get why program languages don't include regular expression support, either built in or as one of the included libraries.

I wanted to parse some html in Objective-C to find the url for an image.  Ideally, I want to use this expression to find an image url:

img src=\"([^\"]+)\"

Objective-C and Apple's libraries do not include any regular expression support.  I found the OgreKit framework that adds this support. 

Unfortunately, all of the documentation is in Japanese.  And, I wasn't able to correctly embed this framework in my project.  I just ended up searching for the url manually.

Technorati Tags: , , , ,

endo

Paul Westbrook | 09 March, 2006 21:42

EnoThe author of ecto has come out with a new RSS aggregator.  endo is a pretty cool application, and it does have some differences that the standard RSS reader.  Instead of having the feed groups listed on the left side, the groups appear across the top of the window.  When you select one of the groups, it slides to the middle of the window, and the others move out of the way.

In addition, it has a pretty good download manager.  It natively support torrent files, using the MIT licensed Transmission BitTorrent client code.  Also, the endo application has built-in updating code, so when an update is needed, it downloads and installs it itself, instead of using a browser.
 (More)

Powered by LifeType
Design by Book of Styles