java - Regex expression to get the number out of the string -


i have string follows

            xxxx456 

for example string

       <ignore>456 

i want number string

try:

yourstr = yourstr.replaceall("[^\\d]", ""); 

Comments

Popular posts from this blog

c++ - End of file on pipe magic during open -

basic authentication with http post params android -

data.table making a copy of table in R -