
December 18th, 2006, 01:36 PM
|
|
Contributing User
|
|
Join Date: Aug 2005
Posts: 77
Time spent in forums: 15 h 52 m 20 sec
Reputation Power: 4
|
|
|
Regex: Filter out -only- the root domain name
I have to enter my root domain name in an exclude path for a .NET module.
The Regular Expression required to indicate that ONLY the root domain name should be excluded, like:
www.domain.com
or
http://www.domain.com
but it should not exclude URL's that have extra items in the URL, such as:
www.domain.com/folder/mypage.htm
I tried:
(?!\bwww.domain.com\b)
but this seems to also include any sub-pages as well...
|