Page 2 of 2

getting pages walked per base url

Posted: Tue Nov 09, 2004 2:06 pm
by mark
Try removing
http://=www\.?

getting pages walked per base url

Posted: Mon Nov 15, 2004 11:41 am
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 '.' ?

getting pages walked per base url

Posted: Mon Nov 15, 2004 1:14 pm
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.

getting pages walked per base url

Posted: Tue Nov 16, 2004 10:58 am
by KMandalia
yeah, you are right.

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

Thanks.