I’m trying to build up some regular expressions to validate some textbox controls. I have done some research and testing but cannot get this one working. Examples of what i am trying to create regular expressions for are as follows:
Range 0-10 digits, and 0 or 2 decimal places
(0|([1-9][0-9]{0,9}))(\.[0-9]{1,2})?is what you want.Of course you can use
\dfor[0-9]instead. I used[0-9]to aid in understanding