cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if the field begins with number or alphabets

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks Eng Swee

Answers (0)