From: Kir Kolyshkin (no email)
Date: Tue Feb 26 2002 - 03:44:27 EST
Nope, just from 1 to 9.
wrote:
>
> Thanks--that's a good change since it allows the user to use more than 9
> replacement variables...
>
> Jeff
>
> |---------+----------------------------------->
> | | Kir Kolyshkin |
> | | <> |
> | | Sent by: |
> | | owner-aseek-devel at lists dot |
> | | asplinux.ru |
> | | |
> | | |
> | | 02/25/2002 06:07 AM |
> | | Please respond to |
> | | aseek-devel |
> | | |
> |---------+----------------------------------->
> >-----------------------------------------------------------------------------------------------------------------------|
> | |
> | To: |
> | cc: |
> | Subject: Re: [aseek-devel] Re: [aseek-users] about Replace in aspseek.conf |
> >-----------------------------------------------------------------------------------------------------------------------|
>
> Thanx, Jeff! This stuff looks cool! I have just changed
>
> o = atoi(&(rep_string[pos+1]));
>
> to
>
> o = rep_string[pos+1] - '0';
>
> to avoid crash if something like \11 is used in replacement.
>
> I have committed it into CVS (with the above and some minor fixes),
> but haven't tested it yet. If somebody will test it and find it working,
> please report.
>
> wrote:
> >
> > Here is a patch I created to do this (file attached). The syntax is
> shown
> > in a comment in the code.
> >
> > Jeff
> >
> > (See attached file: replace.diff)
> >
> > ******************************************
> > I believe we need to implement it, much like the way sed s does.
> > Any volunteer?
> >
> > Alexander F Avdonkin wrote:
> > >
> > > 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
> >
> >
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> > Name: replace.diff
> > replace.diff Type: неопределенный тип (application/octet-stream)
> > Encoding: base64
>
> --
> http://kir.vtx.ru/ ICQ 7551596 Phone +7 903 6722750
> Hi, I'm a signature virus: copy me to your .signature to help me spread!
> --
-- http://kir.vtx.ru/ ICQ 7551596 Phone +7 903 6722750 Hi, I'm a signature virus: copy me to your .signature to help me spread! --
|
|
|