To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=64368
------- Additional comments from [EMAIL PROTECTED] Thu Sep 14 07:31:52 -0700 2006 ------- Jes, > > The use of constructs like [:digit:]? or ([:digit:]) is undefined. > > In fact a better implementation would not match anything there. > > At least from what I've checked, Perl, GNU sed, GNU grep and bash all treat > these like a normal character class. Why wouldn't they be? Please 1. recheck the programs you mentioned with what I wrote. None of them accepts a plain [:digit:] as a valid regular expression matching a digit. Just try sed -e 's/[:digit:]/foo/' It will not replace a digit with foo, but will replace any of the characters 'digt:' with foo. You have to use a named character class within a bracketed expression. sed -e 's/[[:digit:]]/foo/' 2. Don't mix bash in. Bash doesn't know regular expressions, you're confusing it with file name pattern matching. And yes, there bash knows named character classes, but they also have to be used within brackets. See http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_04_03.html Mike, > Where is the mention of additional brackets and what purpose would they serve? Please note that the entire definition of character classes in topic 6 of http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html is a subsection of "9.3.5 RE Bracket Expression". A named character class represents a set within a bracketed expression, and the "[:" and ":]" delimiters are part of the character class expression. Simplified for an "ASCII locale", [:digit:] is a synonym for 0-9, so a complete bracketed expression of [ab[:digit:]] would be the same as [ab0-9] and would match a,b,0,1,2,3,4,5,6,7,8,9 Eike --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]