on 12-15-2015 1:08 PM
Hi experts,
Can anyone help me with an UDF which strips non numeric characters.
Example: 123-456.789
output should be : 123456789
Regards,
Mastan vali
hi Mastan,
try these. (take inp as input type string)
String str= null;
str = inp.replaceAll("\\D+","");
return str;
Regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mastan,
Try the below code
input.replaceAll("[^0-9]", "");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.