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
http://in.linkedin.com/pub/kedar-nayak/19/54b/154
But not accepting the following URL which has www
http://www.linkedin.com/pub/kedar-nayak/19/54b/154
Please suggest me the right regularexpression which can accept LinkedIn Profiles only.
Thank you.