Bug 165930 - F&R dialog accepts search patterns with text after $, should fail informatively
Summary: F&R dialog accepts search patterns with text after $, should fail informatively
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Find&Replace-Dialog Find&Replace-Regex
  Show dependency treegraph
 
Reported: 2025-03-27 12:36 UTC by Eyal Rozenberg
Modified: 2025-04-01 21:08 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 Eyal Rozenberg 2025-03-27 12:36:35 UTC
At the moment, LO's regex capability does not include matching patterns across multiple paragraphs. Also, the $ character matches the end of a paragraph (not a line break or a line ending through wrapping).

Now, if in my document I have some text, then a paragraph break, then some more text, and I try a regex search with the pattern:

\.$\.

I expect to be told "Patterns with text beyond an end-of-paragraph marker $ are invalid." or "are not supported" etc.

Instead, I am told "Search key not found" - which suggests such patterns _are_ valid, and _might_ be matched, but the text doesn't have them.

Now, I would love it if support for past-end-of-paragraph were implemented, but while that's not happened - the user should be told that they can't do that.
Comment 1 V Stuart Foote 2025-03-28 14:32:39 UTC
+1 to clarify the "Search key not found" error when users enter invalid/unsupported regular expression(s).
Comment 2 Eyal Rozenberg 2025-03-31 08:20:07 UTC
Perhaps this would be an easyHack?