cancel
Showing results for 
Search instead for 
Did you mean: 

UDF to pick only numeric value from a string

Former Member
0 Kudos

Hello Experts,

i need help in writing UDF, from source i get one string and in that string contain numeric values.

i need to send only numeric to target side, what is the logic to write in UDF.

Regards,

chinna

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor

Hi Chinna,

str = str.replaceAll("\\D+","");

should work

/Udo

Former Member
0 Kudos

Thanks for the quick response, working

Answers (0)