HI Everybody,
I am struggling with regular expression validation control.Actually my requirment is user can enter either [1-9] or [1-9] [1/2](half)like 2 1/2 value or only 2. I am struggling a lot.I got one expression.But i wont allow the user to enter only number.Its asking 1/2 also.The expression is ^\d* [1]\/{1}[2]$.

I am expecting quick reply and can anybody solve my problem.


Thanks and regards
Nithiyanandhan S

Hi,

Try the regular expression as [0-9]+
Let me know if it works..

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.