Bug 138931 - FIND & REPLACE DIALOG: \\n in the regex Replace is same like \n
Summary: FIND & REPLACE DIALOG: \\n in the regex Replace is same like \n
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 38261 Find&Replace-Regex
  Show dependency treegraph
 
Reported: 2020-12-15 09:54 UTC by Kamil Landa
Modified: 2021-12-06 14:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Landa 2020-12-15 09:54:36 UTC
1) in Writer write Hello, press Ctrl+H for Find&Replace dialog
2) check Regular expressions, Find: e, Replace: \\n
3) do Replace All

It will replace the letter "e" by Enter (like for \n in the Replace), but correct replacement for \\n is string \n. 

For tabulator \t it replaces correctly. \t will do correctly tabulator, and \\t will do correctly string \t. 

Version: 7.1.0.0.beta1 (x64)
Build ID: 828a45a14a0b954e0e539f5a9a10ca31c81d8f53
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: CL
Comment 1 Dieter 2020-12-30 09:24:29 UTC
I confirm it with

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 315c7570c4a72f4c834086082825533b1e50d1bf
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

actual result:
H
llo

exepcted result:
H\nllo
Comment 2 BogdanB 2021-01-29 20:29:48 UTC
Also in Version 3.6.7.2 (Build ID: e183d5b)
I think is inherited from OOo.