Here is what I am trying now.

NSString *recived = [[NSString alloc] initWithData:receivedData encoding:NSUTF8StringEncoding]; RKRegex *regex = [RKRegex regexWithRegexString:@"/<a\\s[^>]*href=(\"??) ([^\" >]*?)\\1[^>]*>.*<\\/a>/siU" options:RKCompileNoOptions];
RKEnumerator *recivedE = [recived matchEnumeratorWithRegex:regex];
while([recivedE nextRanges] != NULL) {
        NSRange matchRange = [recivedE currentRange];
        NSString *link = [recived substringWithRange:matchRange];
        NSLog(@"%@", link);
}

It doesn't work. I get this in the debug terminal.
CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
0xffe48 [RKRegex regexWithRegexString:options:]: (formatString is NULL)

I don't know what can be happening or why they don't have example code.

Thanks for any help,
Mr. Gecko

On Nov 17, 2008, at 11:33 PM, Mr. Gecko wrote:

I never was able to compile RegexKitLite for some reason, and when I use the framework it says warning: 'NSString' may not respond to '- arrayByMatchingObjectsWithRegex:' and when I run the code it gives me this in the debug *** -[NSCFString arrayByMatchingObjectsWithRegex:]: unrecognized selector sent to instance 0x872c00
Any help?

Thanks,
Mr. Gecko

On Nov 17, 2008, at 10:09 PM, [EMAIL PROTECTED] wrote:

<http://www.google.com/search?client=safari&rls=en-au&q=regexp+cocoa&ie=UTF-8&oe=UTF-8 >

gives

<http://www.cocoadev.com/index.pl?RegularExpressions>

Which lists lots of information.

I've used RegexKitLite which works well on Mac OS X. RegexKit appears to have forked in to two variants:

The original RegexKit which does not seem to be getting further development (since the start of 2008) which uses PCRE 7.6

And the newer RegexKitLite which appears to be getting the bulk of development now, which uses the ICU library which is shipped with Mac OS X (but not public on iPhone).

Enjoy,
  Peter.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to