I just want to make a textbox valid which should only accept Linkedin Profiles. I'm using the following RegularExpression, but this is not working.
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtLinkedin" CssClass="required" Display="Dynamic" ErrorMessage="Invalid!" ValidationExpression="(http(s?)://|[a-zA-Z0-9\-]+\.|[linkedin])[linkedin/~\-]+\.[a-zA-Z0-9/~\-_,&=\?\.;]+[^\.,\s<]" ValidationGroup="form1"></asp:RegularExpressionValidator>
The above expression is accepting URLs which doesn't have www like
But not accepting the following URL which has www
Please suggest me the right regularexpression which can accept LinkedIn Profiles only.