Re: NSString Parsing
Re: NSString Parsing
- Subject: Re: NSString Parsing
- From: matt neuburg <email@hidden>
- Date: Mon, 28 Oct 2002 12:33:09 -0800
On Mon, 28 Oct 2002 10:01:04 -0600, Peer Allan <email@hidden> said:
>
What I want to do is extract all the text from in between
>
a pair or tags (<td>...</td> for example). I know I could
>
use a rangeOfString: call to get the first one, but then I
>
have to create a new string with the remaining data and
>
call rangeOfString: again to get the next and on and on
>
until the whole string is parsed. I hope there is a
>
better way to do this.
What I do is simply use whatever language I think is best at this (e.g. perl or ruby) and include a script to do the parsing as a bundle, and just call that script from within my program. Actually this, though easy enough, is probably fairly primitive, since I believe you can now just write your methods in those other languages. You might want to look into RubyCocoa, for example. m.
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.