commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Zatko <mza...@boscovs.com>
Subject Re: [lang] StringUtils.strip
Date Wed, 05 May 2004 12:12:01 GMT
Very true, but unfortunately, this is a WebSphere 5.0 program which is 
still 1.3.


Denis Haskin wrote:

> And in fact you don't need StringUtils at all (>JDK 1.4):
>
>   String s = "781-555-1212";
>   String s2 = s.replaceAll("-", "");
>
> dwh
>
>
> Charles Hudak wrote:
>
>> <sigh> That's just silly that the method would ignore an empty string
>> for the replace characters.
>>
>> It looks like StringUtils.replaceChars("abc", "b", "") = "ac" would
>> work.
>>  
>>
>


-- 

Michael H. Zatko
WebSphere Developer
Boscov's Information Services
Work: 610-929-7317
Home: 610-562-2407


---------------------------------------------------------------------
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