Regex libraries in Objective C?
I'm playing with [link|http://sourceforge.net/projects/agkit|AGKit], which is an ObjC wrapper for libpcre (Perl regular expressions). But, I need a way to escape regular expressions (like the Python [link|http://www.python.org/doc/current/lib/node99.html#l2h-728|re.escape] method does).
Any ideas? Any better regex libraries to use for GNUstep/Objective C?
I might be able to do something like this:
\n\tAGRegex *regex = [[AGRegex alloc] initWithPattern:@"[^a-zA-Z0-9]"];\n\tNSString *result = [regex replaceWithString:@"\\\\$&" inString:strToEscape];\n