Skip to main content.
home | support | download

Back to List Archive

Regex in ReplaceRules

From: Ed Burns <edburns(at)>
Date: Wed Nov 04 1998 - 00:45:26 GMT
Hi folks,

I'm trying to write a replace rule that simultaneously replaces one part
of a string, and removes another.

For example, I have the following directory structure, which gets
indexed from the root


In each directory there is a set of html files.

Now, I would think the following replacerule would work:

ReplaceRules replace "/usr/web/htdocs/\(.*/\)*" "http://host/cgi-bin/concordance/"

I would think this means replace "/usr/web/htdocs/" followed by (any
number of (any number of characters followed by a '/')) with 

But this doesn't work.  I get no matches, and the index just contains
every thing from the root.

What am I doing wrong?


Received on Tue Nov 3 16:54:50 1998