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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -