Regular expressions validates
I'm using this
^\d+(?:fs|sf)[-+]\d+[hmd]$/
regular expression to validate following text
samples:
20fs-4d
10sf+20m
3fs-2h
it is working properly
but even I'm entering first number like (20 or 10 or 3 as samples) it
should be validate that means I should be able to enter the above first
numbers without typing other. If I type other (more than the numbers) then
should be validate the whole text
Please any one can help me to solve this matter
No comments:
Post a Comment