Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Relative Url Validation

  •  03-03-2009, 6:24 AM

    Relative Url Validation

    I will appreciate your help on validation reg expression for relative URL.

    our application has a text box for entering relative url : e.g /mystore/product/querystring?=aaaa

    The following conditions apply:

    1. should begin with "/"

    2. after first "/", if there is no subsequent "/", ?= et should be allowed

    3. if there are more "/" after first "/", between 2 subsequent "/",no special chars should be allowed(like windows restrictions on folder names)

     

    Filed under: , ,
View Complete Thread