Bug 118076 - Documentation: Regular Expressions are no longer Wildcards
Summary: Documentation: Regular Expressions are no longer Wildcards
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:6.3.0
Keywords:
Depends on:
Blocks: Help-Changes-Features
  Show dependency treegraph
 
Reported: 2018-06-09 09:27 UTC by m_a_riosv
Modified: 2024-08-02 23:27 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m_a_riosv 2018-06-09 09:27:18 UTC
Like in  

Wildcards is in the Title of https://help.libreoffice.org/6.1/en-US/text/swriter/guide/search_regexp.html?DbPAR=WRITER#bm_id3150099, but the explanation seems about regular expressions, what I think can confuse users, at the bottom of the page there is link 'List of wildcards' that links to a page with the right title 'List of regular expression'. 

In calc there is an option to select wildcards or regular expression or none. Menu/Tools/Options/LibreOffice calc - Calculation.

Difference between wildcards and regex can be founded in the help about those options https://help.libreoffice.org/6.1/en-US/text/shared/optionen/01060500.html?System=WIN&DbPAR=CALC#bm_id3154420

Wildcards in calc was implemented by Eike for compatibility with excel, in fact when an excel file is open wildcards option it's automatically selected.

In writer only regex are available, not wildcards.

Term regex - regular expression should be used instead and wildcards only like they are in calc help about wildcards selection or should be in calc's help about search and replace.
Comment 1 V Stuart Foote 2018-06-09 15:50:43 UTC
Regular Expression (LO's C++ ICU libs [1]) provide Wildcard matching--correctly known as metacharacters and operators.

Prior to Eike's work on textsearch in bug 72196 for Excel interoperability, simple Wildcard--"glob" syntax [2]--based text searches did not exist, and it was convenient to refer to LibreOffice's pattern matching as "Wildcards"

It is now important to make a distinction as globbing ("*" "?") metacharacters are present as operators in ICU Regex but with completely different function.

Given that we support both, I would agree assigning the "Regular Expression" term for our legacy means of handling pattern matching is needed. While relegating "wildcards" use to the specialized glob style searches (currently only supported in Calc for interoperability with OOXML spreadsheets).

=-ref-=
[1] http://userguide.icu-project.org/strings/regexp#TOC-Regular-Expression-Metacharacters
[2] https://en.wikipedia.org/wiki/Glob_(programming)
Comment 2 Commit Notification 2019-04-11 13:02:36 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/+/7d80346111e3945a8ec6cf5bbf5258eb7402d76d%5E%21

tdf#118076 Clarify use of regexp in writer search