Hey all,
So I'm trying to rip URLs from an NSString using RegExKitLite and I came across an odd problem.
NSLog(@"Array: %@", [message componentsMatchedByRegex:@"^(http://)[-a-zA-Z0-9+&@#/%?=~_()|!:,.;]*"]);
NSString *message is just some text with a URL within it. The strange thing is it doesn't work with the ampersand in it. If I take the ampersand out it works fine, but for obvious reasons I want to keep the ampersand in. I'm also a Regex newb, so don't bash my search expression to much :)
Anyone experience this before with RegExKitLite or RegEx in general in Objective-C?