• 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
perl string handle equivilents in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: perl string handle equivilents in cocoa
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: tiffrepresentation of multiple subviews
  • Next by Date: Re: Doing a NSFetchRequest on a single NSManagedObject
  • Previous by thread: Re: tiffrepresentation of multiple subviews
  • Next by thread: Re: perl string handle equivilents in cocoa
  • Index(es):
    • Date
    • Thread