Skip to main content.
home | support | download

Back to List Archive

Re: Re: Regex in ReplaceRules

From: Ron Klatchko <ron(at)not-real.ckm.ucsf.edu>
Date: Wed Nov 04 1998 - 17:49:49 GMT
Ed Burns wrote:
> 
> On Wed, 4 November 08:37:35, David Norris wrote:
> > I think you want:
> >
> > replace "/usr/web/htdocs/(.*/)*" "http://host/cgi-bin/concordance/"
> >
> > With this input:
> > /usr/web/htdocs/content/books
> >
> > You should get this output:
> > http://host/cgi-bin/concordance/books
> 
> I was *sure* this would work, but again, the regex didn't even fire.
> The output was unchanged.

Assuming that concordance is a CGI that then uses PATH_INFO, use a
simpler rule for SWISH and then let your CGI do any further processing.

moo
----------------------------------------------------------------------
          Ron Klatchko - Manager, Advanced Technology Group           
           UCSF Library and Center for Knowledge Management           
                           ron@ckm.ucsf.edu
Received on Wed Nov 4 10:00:12 1998