Title: htdig missing regex documentation

Subject: htdig missing regex documentation
Package: htdig
Version: 1:3.1.6-11
Severity: minor

htdig supports regexes but there is no documentation as to what form of
regex syntax it supports. For example, does it support regexes like \s,
character classes like [:space:] or [[:space:]], etc.

Given that this is htdig 3.1, it does not support spaces in URL's being
indexed. htdig 3.2 provides a configuration option to work around this.
In htdig 3.1, the only way that I see to work around this is with
url_rewrite_rules and setting it up to rewrite the ' ' character into
%20. This is not a doable thing as a character match for [ ] parses
%incorrectly as two strings "[" and "]".

At your discretion, treat this bug as a request for further
documentation on regexes or close/refile this bug as a request for a
workaround to the "spaces in URL" issue. (Alternately, if you provide the
documentation then I'll provide the workaround for the "spaces in URL"
issue ;)

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-386
Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1)

Versions of packages htdig depends on:
ii  debconf [debconf-2.0]      1.4.58        Debian configuration management sy
ii  gawk                       1:3.1.4-2.0.1 GNU awk, a pattern scanning and pr
ii  libc6                      2.3.5-6       GNU C Library: Shared libraries an
ii  libdb2                     2:2.7.7.0-10  The Berkeley database routines (ru
ii  libgcc1                    1:4.0.2-2     GCC support library
ii  libstdc++5                 1:3.3.6-7     The GNU Standard C++ Library v3
ii  lockfile-progs             0.1.10        Programs for locking and unlocking
ii  perl                       5.8.7-3       Larry Wall's Practical Extraction
ii  sed                        4.1.2-8       The GNU sed stream editor
ii  zlib1g                     1:1.2.3-4     compression library - runtime

Versions of packages htdig recommends:
ii  apache2-mpm-prefork [httpd]   2.0.54-5   traditional model for Apache2
pn  htdig-doc                     <none>     (no description available)
pn  wwwoffle                      <none>     (no description available)

-- debconf information:
* htdig/run-htnotify: false
* htdig/keep-databases: true
* htdig/generate-databases: true
  htdig/dblocation-changed:
* htdig/announce_package_split:

Reply via email to