https://bugs.documentfoundation.org/show_bug.cgi?id=170491

            Bug ID: 170491
           Summary: The explanation for "\s" and [:space:] in the list of
                    regular expressions is unclear
           Product: LibreOffice
           Version: 25.8.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Documentation
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Description:
The explanation for "\s" and [:space:] in the list of regular expressions is
unclear.

Steps to Reproduce:
1. Open "List of Regular Expressions". ( Current version is 25.8 )
  https://help.libreoffice.org/latest/en-US/text/shared/01/02100001.html

\s and [:space:] are
  Represents a space character (but not other whitespace characters).

2. Open "ICU page".
  ICU
 
https://unicode-org.github.io/icu/userguide/strings/regexp.html#regular-expression-metacharacters
  \s is
  Match a white space character. White space is defined as [\t\n\f\r\p{Z}].

Others
Regular expression
https://en.wikipedia.org/wiki/Regular_expression

Whitespace
https://en.wikipedia.org/wiki/Whitespace_character

Actual Results:
3. It may not be wrong, but the explanation is difficult to understand.

Expected Results:
3. It would be good to reproduce a similar explanation as ICU's.
   Additionally, note that it may include tab characters and line breaks.


Reproducible: Always


User Profile Reset: No

Additional Info:

Sample Calc formula
Tab + Line break + Half-width space + Full-width space

=LEN(REGEX(CHAR(13) & CHAR(10) & " " & " ", "\s*"))  -> 4
=LEN(REGEX(CHAR(13) & CHAR(10) & " " & " ", "[:space:]*"))  -> 4
=LEN(REGEX(CHAR(13) & CHAR(10) & " " & " ", "[\t\n\f\r\p{Z}]*"))  -> 4

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to