on 05-13-2014 8:51 AM
hi
i need java udf help
my input field A is - 1234$%87abcd 9
my output B should be - 1234879
so, i have to get only numbers 0,1,2,3,4,5,6,7,8,9 in output field ,any other character coming apart from 0 to 9 should be ignored. Please provide complete udf in java.
rgds
Hi,
This single line will do:
str = str.replaceAll("\\D+","");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.