According to David Patterson:
> Ok.  I got the patch and recompiled.  Unfortunately, I am stinking a regex's.
> I started checking out some online docs for awk style regex help.   Lots of
> places.  I tried almost 50 different ypes of regex's, none of them has come
> close to matching what I want to do.  
> 
> To start with, I am not even looking to do the complicated search/replace.  I
> am just trying to follow the example included with the documentation, mutated
> for my needs.  Here is what I have:
> 
> url_rewrite_rules:    (.*)\files/[0-9*]/.* \\1

First off, you can get rid of the backslash before the f in files.
It probably isn't doing any harm, but in case it is, get rid of it.
It's not needed.  Secondly, You should move the asterisk outside the
brackets, to indicate 0 or more occurrences of any character inside the
brackets, i.e. [0-9]* .

It may also be that this implementation of regex needs the parentheses
to be escaped, i.e. "\\(.*\\)files/[0-9]*/.*".  I've never tried this
patch myself, so I couldn't say for sure.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to