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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -