on 08-23-2010 3:41 AM
Hi Experts,
I need to extract the Numeric values from a string?
I think that can be done using UDF? Can i use substring for the same?
Ex: NZD 488775544
Please suggest.
Thanks,
Sushama
Please check the code:
int len = str.length();
char test = ' ';
for(int counter = 0; counter < len; counter++)
{
test = str.charAt(counter);
if(Character.isDigit(test))
{
return str;
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.