commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanouil Batsis <Emmanouil.Bat...@eurodyn.com>
Subject Re: [lang] Additions to StringUtils ?
Date Fri, 19 Nov 2004 10:39:50 GMT
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


Mime
View raw message