Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to get a decimal from a string after trimming of leading zeros and non-numeric characters.
Can you give a typical example of the String you want to change?
Let the string be like
000AB1234
001234AB
I need the output as
1234
1234
I tried Integer.parseInt(input.replaceAll("[^0-9]", "")) in tjavarow
But I'm getting null in my output