how to wrap the numbers from the textview in android

view story

http://stackoverflow.com – In Android ,i have a TextView ,inside the textview ,it contains some text example(22 likes,some times 1 like or empty text).Here i want to get only numbers not characters.so using how to use the String.replaceAll() to get the numbers exactly without empty text. Here is a sample code ... textview.setText("2 Likes"); String com=textview.replaceAll("",""); (HowTos)