Package: manpages Version: 2.01-1 Severity: minor File: regex.7.gz
Hello ! The regex.7.gz mentions that [[:>:]] and [[:<:]] are available to designate word boundaries. However, neither grep nor sed, which are build on the standard libc regcomp do recognise this syntax. Moreover, the small program here #include <regex.h> #include <sys/types.h> #include <iostream> using namespace std; int main() { regex_t RE; int err_code = regcomp(&RE, "[[:<:]]", REG_EXTENDED); char Buffer[100]; if(err_code) { regerror(err_code, &RE, Buffer, 100); cerr << "Error : " << Buffer << endl; } } produces the following error message: Error : Invalid character class name My guess is that this feature is not implemented anymore, or has never been. Then, two solutions: either remove it from the documentation, or at least mention that it's not supported anymore - either put the feature back into libc ;-) ! Thanks for considering this report Vincent Fourmond -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.7 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]