Need to select first character

Hi all , I need to select first character and check whether it is numeric or not.

In this picture of string , the first character is C which is not numeric.

May I know how can I achieve it .
Thanks

Hey!

Try this

Assign String output = input.Substring(0)

In if condition

isNumeric(output)=True

Regards,
NaNi

Hi @saritha,

IsNumeric("yourString".Substring(0,1))

Regards,
MY

@saritha

Use “Is Macth” activity for verify the first character is numeric or not. Attached image which has the regular expression used to check.

HI,

FYI, simpler, the following expression returns true if the first character is numeric

IsNumeric(yourString.FirstOrDefault)

Regards,

1 Like

Hey

You can use
in If condition

IsNumeric(strVar.substring(0))

Thanks

Here is how I would do it using the LEFT function: