getting pages walked per base url

User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

getting pages walked per base url

Post by mark »

Try removing
http://=www\.?
KMandalia
Posts: 301
Joined: Fri Jul 09, 2004 3:50 pm

getting pages walked per base url

Post by KMandalia »

I am already doing it,

For example I have two sites,

www.somesite.com
somedomain.somesite.com

I want to only consider everything after the first '.'

<sandr "http://=www\.?[^/]+.*" "\3" $urllisting>

this one only removes if the url starts with 'www', what would I change to return everything after the first '.' ?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

getting pages walked per base url

Post by mark »

<sandr "http://=[^.]+\.=.*" "\4" $urllisting>

But for "http://somesite.com" you'll get just "com". Not sure if that's what you really want.
KMandalia
Posts: 301
Joined: Fri Jul 09, 2004 3:50 pm

getting pages walked per base url

Post by KMandalia »

yeah, you are right.

I don't think I want to do anything about it for the time being.

Thanks.
Post Reply