Bug 154608 - [LOCALHELP] Add more examples of Regular Expressions for special characters
Summary: [LOCALHELP] Add more examples of Regular Expressions for special characters
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Olivier Hallot
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-04 20:43 UTC by Olivier Hallot
Modified: 2023-04-06 13:51 UTC (History)
3 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 Olivier Hallot 2023-04-04 20:43:04 UTC
Demand from community member on regular expressions Help page:

------------------8<--------------
I recently had a conversation at chemnitzer linux days with a user who was looking for a way to replace soft hyphens (which were generated by another program) after import. We both didn't find out how to do that. Later on I found out that a regular expression using one of those
 \xAD
 \x{00AD}
 \u00AD
 \U000000AD
 \N{SOFT HYPHEN}
would do.
Perhaps this is a good idea to have this (because it is an invisible char) as an example on help page
file:///Applications/LibreOffice.app/Contents/Resources/help/en-US/text/shared/01/02100001.html

- especially the last one \N{SOFT HYPHEN}, which is imho nowhere documented. And I'm quite sure there are more of this kind, too. 

------------------8<--------------

Help page is
https://help.libreoffice.org/master/en-US/text/shared/01/02100001.html
Comment 1 Mike Kaganski 2023-04-04 21:21:23 UTC
Note the "For a full list of supported metacharacters and syntax, see ICU Regular Expressions documentation" there, which is exactly for the complete syntax.
Comment 2 Olivier Hallot 2023-04-05 16:31:56 UTC
Patch submitted
https://gerrit.libreoffice.org/c/help/+/150062
Comment 3 Commit Notification 2023-04-05 18:32:37 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/470abc85b20e113506966df8883e287d25079517

tdf#154608 Add example of regex with \N{} to Help