on 06-26-2014 7:42 AM
Hello Experts,
I have a requirement where in the filed will contain alphanumeric value and I must map based on whether the field starts with alphabet or number.
I know I have to use Starts with function ,but how do I check whether the field begins with number or alphabet.
Thanks in advance
Regards
Advit
Hi Advit
You can use the following single value UDF to check if the first character is numeric or not
if(Character.isDigit(input.charAt(0))) {
return "true";
} else {
return "false";
}
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.