Regular Expression Validation Question

J

Jon Natwick

I am using the following script to validate e-mail address format. The
problem I'm having however is that if I enter a long invalid string, like
"123456789012345678901234567890", CPU process for this process goes to
maximum and IE does not respond.

I am doing something wrong or is this a bug? Is there a way I could prevent
this behavior?

<asp:regularexpressionvalidator id="vld1EmailName" runat="server"
ControlToValidate="tbEmailName"
ValidationExpression="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$"
Display="Dynamic" CssClass="ValidationMessage">E-mail format is not
valid<br></asp:regularexpressionvalidator>
 
R

recoil

There is a similar posting that came up a few days ago. From the best
of my understanding it might be a bug in IE's javascript regex that
appeared sometime in the latest SP2 update.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top