Bug 143226 - Unicode code \uXXXX does not work in a regular expression
Summary: Unicode code \uXXXX does not work in a regular expression
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-07 02:33 UTC by TorrAB
Modified: 2021-07-07 12:13 UTC (History)
1 user (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 TorrAB 2021-07-07 02:33:35 UTC
Description:
Regular-expression Help says \uXXXX is the character represented by the four-digit hexadecimal Unicode code (XXXX).
This does not work. Searching for ‘m’ as \u006D yields nothing, even if the text has many ‘m’. (I wanted to find a no-break space, U00A0.)


Steps to Reproduce:
1.search (^h) for \u006D in a doc with ‘m’ in it.
2.
3.

Actual Results:
nothing found

Expected Results:
‘m’ should be found.


Reproducible: Always


User Profile Reset: No



Additional Info:
none
Comment 1 V Stuart Foote 2021-07-07 03:20:56 UTC
Can not confirm. <Ctrl>+H find & replace dialog with the 'Regular Expressions' mode checkbox enabled find Unicode string entered with the \u006d syntax--and honors the 'Match case' mode checkbox when that is selected.

Version: 7.1.5.1 (x64) / LibreOffice Community
Build ID: 2ca94649fd6dbdcab938c55c28b6a950a9634a34
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 [REDACTED] 2021-07-07 09:37:13 UTC
no repro

Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: kf5
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 TorrAB 2021-07-07 12:13:03 UTC
Ooops!
Sorry, I must have forgotten to check Regular-expressions