Um num num 0 Newbie Poster

I used regex a bit before but never got the hang of it. I need some help with few problems. My net is very limited for now so I can’t browse and look for answers so if anyone can help me with this ill appreciate it

1) For one text box I need so that the user can only enter 1 to 30

2) For second one I need it so that 101- must be entered first then followed by 2 numbers and a letter
E.g. 101-11a

simple stuff

Cheers

:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.