commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Haskin <De...@HaskinFerguson.net>
Subject Re: [lang] StringUtils.strip
Date Tue, 04 May 2004 20:58:58 GMT
I haven't tried it, but according to the examples in the javadoc, 
replace() won't do it either:

StringUtils.replace("aba", "a", "")    = "aba"

dwh


Charles Hudak wrote:

>...You probably want to do this:
>
>StringUtils.replace(number, "-", "");
>
>  
>



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