perl string handle equivilents in cocoa
perl string handle equivilents in cocoa
- Subject: perl string handle equivilents in cocoa
- From: Jeff Childers <email@hidden>
- Date: Sat, 6 Aug 2005 12:43:16 -0500
another newbie question.
in perl
$string = "aB,,c";
$string =~s/[^A-Za-z]//g;
$string = uc($string);
@str = split(//, $string);
$string = join(",",@str);
print $string;
>>A,B,C
Of the 5 divide methods in NSString I don't see one the will divide
each character to an array. I could bepass the regex with ifs' then
stringByAppendingString. It seems like alot of work for something so
easy in perl.
is this functionality easily reproducable in cocoa or should I use the
PerlObjC bridge and be done with it? suggestion appreciated.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden