Re: subStrings separated by...
Re: subStrings separated by...
- Subject: Re: subStrings separated by...
- From: Ricardo Strausz <email@hidden>
- Date: Wed, 17 Dec 2003 17:44:08 -0600
Gracias Chuck!
This is what I was looking for;
live the simple, live foundation!
Dino
ps Thanks to all the rest who answered in one way or another.
On Dec 17, 2003, at 16:10, Chuck Hill wrote:
NSArray anArrayOfStrings =
NSArray.componentsSeparatedByString(value, "-");
Ricardo Strausz wrote:
Hola!
This most be an easy one (for someone who knows Java);
in a validateAtribute(String value) method of an EOGenericRecord's
child, I want to check if the value have the form ABC-123456-XYZ (3
letters, dash, 6 numbers, dash, 3 alphanumeric characters). In Obj-C,
while using NSString, you simply use
NSArray anArrayOfStrings = [value componentsSeparatedByString:@"-"];
and then parse each of the 3 elements in the array.
java.lang.String does not seem to have such a method (nor any that
returns an array or vector).
Any idea on how to acomplish this.
Gracias,
Dino
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Chuck Hill email@hidden
Global Village Consulting Inc.
http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.