I need to write a method such that when we pass on a string to it, it
returns a substring out of it. returned string is such that it
consists of numerals only. All the characters other than numerals are
" 2009-05-30 10:25:15 UTC" ==> 20090530102515
I have written the following method for the same.
It seems to be working but I am looking for your suggestions /
--> performance improvment
--> any bug that i am not able to see
x = istr.split(//)
istr = ""
if a >= '0' && a <= '9'
istr = istr +a
Thanks for feedback