On Tuesday, December 10, 2002, at 06:14  PM, Rob Kremer wrote:

The following shows the actual url to a file I want to match and this HTML code works with HtDig, which I wouldn't expect to, because / is a special character in regex and should need to be escaped with \/

Restrict to: <select name="restrict">
<option value="/work_area/disp_ecrs/WK001374.lbl.html">

Is regex implemented for 3.20b4 for the restrict field? Documentation seems to say it is.
Yes, but for backwards compatibility, you must "escape" regex like so:

[regex]

The [] characters are only used on the outside of the regex and otherwise have normal meanings. But remember that previous versions of ht://Dig took string patterns for restrict fields, so forcing regex down everyone's throat seemed like the wrong way to go.

I believed that was in the documentation. What snapshot of ht://Dig 3.2.0b4 are you using?

--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/



-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now! Before the Holidays pass you by.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
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