I need to validate with javascript, a textbox with this format: 99/99999999/99 I've done a function that solves the problem. But I'd like to improved using Regex, but I'm new with regex. Any suggestion please?
This is how I maked before:
<asp:RegularExpressionValidator ID="RevNass" runat="server"
ErrorMessage="NASS inválido. Formato correcto: ##/########/##" Display="None"
ValidationExpression="^\d{2}/\d{8}/\d{2}$"
ControlToValidate="TextBox1" meta:resourceKey="RevNass"/>
<asp:ValidatorCalloutExtender ID="RevNass_ValidatorCalloutExtender"
runat="server" Enabled="True" TargetControlID="RevNass">
</asp:ValidatorCalloutExtender>
But I need to validated only with javascript in the onblur event, but i don't know how to convert this pattern "^\d{2}/\d{8}/\d{2}$" to javascript's pattern. I'm Sorry but this is urgent no time to readed a hugh tutorial, later i will.