Hi,
I am trying to find the right regular expression which would only
validate a URL with a given number of folders.
Example:
http://www.abc.com/folder/page.htm --Valid (4 slahes)
http://www.abc.com/folder/subfolder/ --not valid (5 slashes)
Basically, any URL not made of 4 slahes would be invalid.
However, the URL:
http://www.abc.com/folder/subfolder --would also be invalid
Any ideas?
Thanks,
Seb
I am trying to find the right regular expression which would only
validate a URL with a given number of folders.
Example:
http://www.abc.com/folder/page.htm --Valid (4 slahes)
http://www.abc.com/folder/subfolder/ --not valid (5 slashes)
Basically, any URL not made of 4 slahes would be invalid.
However, the URL:
http://www.abc.com/folder/subfolder --would also be invalid
Any ideas?
Thanks,
Seb
Comment