Regex issue

tsoct
Tera Guru

I need the input to begin with 'IT' followed by 25 characters.

When I tested IT60X0542811101000000123456 for regex ^IT\[0-9A-Z]{25}$, no matches were detected.

What might be the reason?

 

1 ACCEPTED SOLUTION

vermaamit16
Kilo Patron

Hi @tsoct 

 

Can you please try with the below regex :

^IT[A-Z0-9]{25}$

 

Thanks and Regards

Amit Verma

Thanks and Regards
Amit Verma

View solution in original post

10 REPLIES 10

vermaamit16
Kilo Patron

Hi @tsoct 

 

Can you please try with the below regex :

^IT[A-Z0-9]{25}$

 

Thanks and Regards

Amit Verma

Thanks and Regards
Amit Verma