0 Replies Latest reply on Aug 4, 2008 6:06 AM by Brij_Mohan

    URL validation doesn't work in case of datagrid

    Brij_Mohan
      Hi,

      We have a field to enter the server URL in one of the datagrid columns. We need to have specific validations for the URL value entered by the user. But the validations implemeneted using the regular expressions doesn't work properly and even the correct values entered by the user are shown as invalid. Please let us know if you have any idea about the issue mentioned. For e.g. we have used the regular expressions mentioned below:-
      \b((?:http|ftp)://[^\s\"\']\S+?)(?=[\,\.\|\)\>\'\"]?(?:\s|$))
      [-\w\.]+://([-\w\.]+)+(:\d+)?(:\w+)?(@\d+)?(@\w+)?([-\w\.]+)(/([\w/_\.]*(\?\S+)?)?)?
      but it shows the URL entered like http://www.yahoo.com as invalid.