According to Krzysztof Gorgolewski:
> I finally found the solution to use regular expression with the
> limit_urls_to attribute. It is necessery to backslsh all special
> characters like ?,&,^... Here is an example: with
> 
> [\^http://www.tu-clausthal.de/geomuseum/[^\&]+\$]
> 
> i solved my problem. Now htdig only indexes sites till the first "&"
> sign :o)

Are you sure that all these characters need to be escaped with a backslash?
I am pretty certain that only the $ and ` characters need this special
treatment.  I forgot to escape the $ in the example I sent you on Tuesday.

The reason for this escaping is that before the contents of local_urls_to
is parsed as a string list, looking for substrings or regular expressions,
it is first parsed for variable subtitutions and file subtitutions, which
gives the special meaning to $ and `.

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


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
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