5 Replies Latest reply on Jul 19, 2011 10:29 AM by Gregory Lafrance

    RegEx in my Flex app does not exclude a URL.

    Gregory Lafrance Level 6

      Here is my regex:

       

      ^(?#Protocol)((ht)tp(s?)\:\/\/|~\/|\/){1}((?#IP Address)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|(?#Subdomains)(([-\w]+\.)+(?#TopLevel Domains))([a-z]+))(?#Port)(:[\d]{1,5})?(\/\S*)*$

       

      It allows this URL, but I'd like it to disallow this URL:

       

      http://10.10.10.10.comasdf

       

      Can anyone help me understand where it is wrong?