Re: [aseek-users] about Replace in aspseek.conf

From: Alexander F Avdonkin (no email)
Date: Wed Jan 09 2002 - 07:59:11 EST


Unfortunately, only fixed strings can be used as replacement.

Alexander.

Sander ΠΙΣΑΜ(Α):

> Hi,
>
> I'm looking into the replace functionality for hrefs in the configuration
> files.
>
> Now I've got this situation: one site has all of it's pages both via a
> subdomain and via a direct link in the site.
> http://downloads.startkabel.nl and http://www.startkabel.nl/k/downloads/index.php
>
> One wouldn't be much of a problem, however when you're looking
> at 2000 of these pages is makes for some nice search engine polution.
>
> With the current Replace implementation it's possible to match and
> replace with a given string. But is it also possible to do a search
> and replace where the replace is a result of the match? So something like
>
> $_ = "downloads.startkabel.nl";
> ~s/(.*?)\.startkabel\.nl/www\.startkabel\.nl\/k\/\1\/index\.php/gi;
> print $_;
>
> returns www.startkabel.nl/k/downloads/index.php
>
> (written in perl btw)
> is possible?
>
> Kind regards,
> Sander
> Bokhorst








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD