AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sostituzione caratteri in stringa

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
mithrandir
Guest





PostPosted: Thu Feb 23, 2006 2:12 pm    Post subject: sostituzione caratteri in stringa Reply with quote



ciao.

ho una stringa di caratteri e interi [A-Z0-9]... mi servirebbe
togliere o sostiture con un intero tutte le lettere.

come potrei fare?

grazie
--
La vita è quello che succede mentre tu stai facendo altri progetti.
Back to top
Guest






PostPosted: Thu Feb 23, 2006 2:12 pm    Post subject: Re: sostituzione caratteri in stringa Reply with quote



stringaNew = stringa.replaceAll("\\D","");
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.