what is the issue with this regular expression validator? It is giving syntax error

rwima

New Member
What is the issue with this regular expression validator? It is giving syntax error.I have a multiline textbox which can accpet HTML inputs. I should not allow the user to enter any link tags either in the start of the text or anywhere in the middle or at the end.How do i check this using regular expression validator? New to .net. Thanks.\[code\]<asp:RegularExpressionValidator id="EmailLinkValidator" runat="server" controltovalidate="EmailTextBox" display="Dynamic" ValidationExpression="(?m:(?:<a )?href|</a>\r?\n?)" cssclass="clsError" errormessage="<%=this.ERR_MSG%>">*</asp:RegularExpressionValidator>\[/code\]
 
Back
Top