Apache OpenOffice (AOO) Bugzilla – Issue 41706
space class in regular expression do not cover tab
Last modified: 2017-05-20 10:11:21 UTC
[:space:] class in regular expresion don't match tab in search.
Created attachment 22031 [details] bug
reassigned to SBA.
help bug this is true, seems to be a bug in the help reassigned to ufi set target OOo later set prio to P4
this bug reoccurs is in all versions till now (current buid scr680_m77)
It's not bug in help. It's bug in regexp engine. Tab is space char class [:space:] in every regexp implementation what I know. I guess why regexps in OOo not same as standart as POSIX.2 or other de facto standart gnu grep, gnu sed, perl? $ grep '^[[:space:]]' <(printf "\twith tab\n with space\nwithout space") with tab with space $ grep -v '^[[:space:]]' <(printf "\twith tab\n with space\nwithout space") without space
reassigned to SBA
SBA: When the current behavior is the designed behavior (as it is), then "[....] in every regexp implementation what I know" does not make it automatically a defect. => Type changed to Enhancement. Reassigned to Requirements.
I'm sorry to disagree, but the 2.3 Help says: "[:space:] represents a whitespace character such as space" and the implementation does not do that. So it *is* a bug, either with Help or the implementation. Someone needs to do something! How about in Help: "[:space:] represents a space character (but not other whitespace characters)" as a temporary measure, to inform people who use other regex like in Perl that do it differently.
Since version 3.4, [:space:] matches to tab also. Current help page for list of regular expression contains: > [:space:] Represents a space character (but not other whitespace characters). The page should be updated.