• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[ANN] AGRegex 0.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ANN] AGRegex 0.3


  • Subject: [ANN] AGRegex 0.3
  • From: Aram Greenman <email@hidden>
  • Date: Tue, 25 Mar 2003 16:35:17 -0800

AGRegex provides Perl-compatible pattern matching and substitution to Cocoa applications using the PCRE library. For example, if you have some Perl code like this:

$str = "paranoid android";
$str =~ s/(paran|andr)oid/\u$&/g;

you can write the same thing with AGRegex like this:

NSString *str = @"paranoid android";
str = [[AGRegex regexWithPattern:@"(paran|andr)oid"] replaceWithString:@"\\u$&" inString:str];

New in version 0.3:

- Updated PCRE core to 4.0.
- Supports Unicode.
- Supports named subpatterns like Python.
- Builds on GNUstep, thanks to Scott Anderson.

AGRegex is freely available under BSD license at:

<http://sourceforge.net/projects/agkit>

or by anonymous CVS:

% cvs -d:pserver:email@hidden:/cvsroot/agkit login
% cvs -z3 -d:pserver:email@hidden:/cvsroot/agkit co AGRegex
_______________________________________________
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.
  • Prev by Date: RE: Send TCP Data
  • Next by Date: Re: socket sample in cocoa
  • Previous by thread: Re: Populating an NSPopUpButton from an array
  • Next by thread: NSMovieView Madness
  • Index(es):
    • Date
    • Thread