Checking whether the first two digits of a string value is alphanumeric

Hello Everyone,

I want to check if the IBAN data starts with an Alphanumeric value.

I tried the System.Text.RegularExpressions.Regex.IsMatch(“in_IBAN”,“[0-2]”) method but did not get a positive result.

Thank you for your help

@MrKezay

Can you share few examples? So that we can try to help

Thanks

1 Like

Mark solved if it solves your problem:

System.Text.RegularExpressions.Regex.IsMatch(IBAN1,“[1]”)


  1. 0-9 ↩︎

1 Like

@MrKezay - Are you looking something like this?

You can see first two lines are selected whereas the third did not match the criteria…

^[A-z0-9]{2}
2 Likes

This is exactly the solution I want. I’m sorry I couldn’t express myself correctly.

Thank you very much. @prasath17

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.