How to check regular expression for a text field.

keerthi19
Tera Guru

How to check regular expression for a text field. For example: In the text field user should needs to enter only 552 to 574 numbers .they should enter only numeric number within the specified numbers.how can we check this using regular expression or any other way.

1 ACCEPTED SOLUTION

Hi,



Try this regex: ^azwv51((75|76|77|78|79)|[8-9][0-9])$


View solution in original post

5 REPLIES 5

Hi Subhajit,



A better way to do the same is ^azwv51(7[5-9]|[8-9][0-9])$ :


we capture either 75-to-79 or 80-to-99


you can get more detailed explanation here: https://regex101.com/ for every regex you put there.