character ? string ?

Hi all,

i have a combination of numbers and characters say for example

100mg

250gm

10-15gm

23%

i should seperate the numbers from the units for generating an xml with customized tags

say100 and mg seperately 10-15 and gm seperately,23 and % seperately. How can i write a common code which identifies numbers and characters. If Character class is to be used for checking isDigit or isChar(i suppose i am right) how to use that?.Please help me

urs friendly

kannan.s

[541 byte] By [bronze-starDukes] at [2007-11-26 12:14:47]
# 1
You could use Regular Expression.it's good for matching.=)
bronzestar at 2007-7-7 14:17:49 > top of Java-index,Archived Forums,Socket Programming...