A simple regular expression for a reasonable height in feet / inches would be:
[2-7]'(1[01]|\d)(''|")
For ASP.NET ValidationExpression, it will be something like:
<asp:RegularExpressionValidator id="myHeightRegex" runat="server"
ControlToValidate="txtName"
ValidationExpression="[2-7]'(1[0-1]|\d)(''|\")"
ErrorMessage="Invalid Height" Display="Dynamic" />
source
share