Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 37400 invoked from network); 19 Nov 2004 10:39:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Nov 2004 10:39:46 -0000 Received: (qmail 80701 invoked by uid 500); 19 Nov 2004 10:39:38 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 80597 invoked by uid 500); 19 Nov 2004 10:39:37 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 80581 invoked by uid 99); 19 Nov 2004 10:39:37 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [62.192.67.250] (HELO alpha.eurodyn.com) (62.192.67.250) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 19 Nov 2004 02:39:35 -0800 Received: from parnitha.eurodyn.com (parnitha.eurodyn.com [10.251.0.3]) by alpha.eurodyn.com (8.12.9/8.12.9) with ESMTP id iAJAdQWw001671 for ; Fri, 19 Nov 2004 12:39:26 +0200 (EET) Received: by parnitha.eurodyn.com with ESMTP id MAA03888; Fri, 19 Nov 2004 12:39:26 +0200 (EET) Received: from [10.254.255.58] (account emmanouil.batsis [10.254.255.58] verified) by eurodyn.com (CommuniGate Pro SMTP 4.0.5) with ESMTP id 1838761 for commons-user@jakarta.apache.org; Fri, 19 Nov 2004 12:39:26 +0200 Message-ID: <419DCD76.3030408@eurodyn.com> Date: Fri, 19 Nov 2004 12:39:50 +0200 From: Emmanouil Batsis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [lang] Additions to StringUtils ? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ha ryon wrote: >- I would like to be able to split a string using a String (more than >one character long) separator. >split(, "::") ->[ "John;Arthur", >"Renaud:Sylvan", "me:you" ] > > I think this is available in all 1.4+ JREs: "John:Arthur::Renaud:Sylvan::me:you".split("::"); see http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#split(java.lang.String) --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org