Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 18th, 2006, 01:36 PM
kila2 kila2 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 77 kila2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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...

Reply With Quote
  #2  
Old December 20th, 2006, 12:07 PM
kila2 kila2 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 77 kila2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 52 m 20 sec
Reputation Power: 4
Solution found:

(domain\.com$)

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Regex: Filter out -only- the root domain name


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway