Thread: regex
View Single Post
Old 11-01-2004, 05:19 AM   #4 (permalink)
philthee
Registered User
 
Join Date: Oct 2004
Posts: 15
philthee is on a distinguished road
actually if i do this then this should be ok i would presume

String bandName = toks.nextToken();

Pattern removePeriods = Pattern.compile("[\\.]");
System.out.println(removePeriods.matcher(bandName) .rep laceAll (""));

no need to put it in to a temp variable and then p8utting it back again
philthee is offline   Reply With Quote