RobertP Posted April 18, 2012 Share Posted April 18, 2012 I need to limit the characters after the decimal to 1 or 2. this is what i have. ^[0-9]+(?:\.[0-9]*)?$ I think i have to add {1,2}, but no idea where. Any help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
xyph Posted April 18, 2012 Share Posted April 18, 2012 * means between 0-unlimited times. You probably want that as {1,2} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.