Issue 41706 - space class in regular expression do not cover tab
Summary: space class in regular expression do not cover tab
Status: CLOSED OBSOLETE
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 1.1.2
Hardware: All All
: P4 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 12:21 UTC by pichi
Modified: 2017-05-20 10:11 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
bug (13.24 KB, image/png)
2005-01-31 12:22 UTC, pichi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pichi 2005-01-31 12:21:38 UTC
[:space:] class in regular expresion don't match tab in search.
Comment 1 pichi 2005-01-31 12:22:52 UTC
Created attachment 22031 [details]
bug
Comment 2 michael.ruess 2005-02-01 13:25:15 UTC
reassigned to SBA.
Comment 3 jack.warchold 2005-02-03 17:02:58 UTC
help bug
this is true, seems to be a bug in the help
reassigned to ufi
set target OOo later
set prio to P4
Comment 4 jack.warchold 2005-02-03 17:04:19 UTC
this bug reoccurs is in all versions till now (current buid scr680_m77)
Comment 5 pichi 2005-02-10 08:03:07 UTC
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
Comment 6 Uwe Fischer 2005-02-10 08:22:18 UTC
reassigned to SBA
Comment 7 stefan.baltzer 2005-03-16 16:38:33 UTC
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.



Comment 8 drking 2007-11-04 09:37:18 UTC
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.

Comment 9 hanya 2015-01-23 03:42:08 UTC
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.