Perl regex custom validation not working

15 years 1 month ago #92051 by rlopes
I searched quite a lot for this and couldn't find anything, so I'm posting here:

I am trying to validate a field to get only, and exactly 2 numbers on it. Like 51, 42, 06, etc.

This the regex I was trying: ( /[0-9][0-9]/ ).
Now the weird thing: I tried to use ( /.*/ ) as the regex(to see if it would allow anything on the field), but it also didn't work. In both cases nothing is passing on the fields(I always get Invalid Input).

Any thoughts?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.194 seconds

Facebook Twitter LinkedIn