https://bugs.documentfoundation.org/show_bug.cgi?id=162034
Buovjaga <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ilmari.lauhakangas@libreoff | |ice.org Whiteboard| QA:needsComment | --- Comment #3 from Buovjaga <[email protected]> --- (In reply to Daniele from comment #0) > Description: > When matches are present both in text and in footnote, using some regular > expressions, for ex.: > \bp\b)(\.)*([^ ])(\d{1,})+ > to be replaced with > $1. $4 > using the Current selection only option LO replaces current result, but > does not continue from there to the next one but jumps to the text if > searching in the note or to the note when searching the text. > It also happens with other similar regular expressions, but this one is > given as an ex. > > Steps to Reproduce: > 1.create odt with text with similar patterns both in text and note: p. 34 > (at least two in each) > 2. open advanced search, > 3. search (Find next) within the text > \bp\b)(\.)*([^ ])(\d{1,})+ The correct expression is (as seen in the video): (\bp\b)(\.)*([^ ])(\d{1,})+ So the first parenthesis was missing. However, I strangely could not find anything when copying & pasting the expression (same with many old versions tested). I noticed that I could make it work at least partially with simply (\bp\b)(\.)*([^ ]) and even the full expression worked when I added one piece at a time - sometimes! However, the regex seems kind of strange. It seems this would be simpler and this certainly always works for me: (\bp\b)(\.) (\d+) $1. $3 I can't reproduce the jumping to the footnote with this, however. Arch Linux 64-bit Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 0427231a1485d324519e94246ff702bc0cb18b89 CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: CL threaded Built on 29 August 2024 -- You are receiving this mail because: You are the assignee for the bug.
