Bug 91033 - Writer: regular expression to find string ending paragraph and paragraph end itself
Summary: Writer: regular expression to find string ending paragraph and paragraph end ...
Status: RESOLVED DUPLICATE of bug 108256
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.8.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 114548 (view as bug list)
Depends on:
Blocks: Find-Search
  Show dependency treegraph
 
Reported: 2015-05-02 23:51 UTC by Nick Levinson
Modified: 2018-02-17 10:59 UTC (History)
5 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 Nick Levinson 2015-05-02 23:51:39 UTC
Regular expressions should be enhanced to permit finding only those paragraphs that end with a specified string together with finding the paragraph end itself, so that I can remove a paragraph break after a paragraph but only if it ends with a given string.

What found the paragraphs but did not permit removing the breaks (the original paragraphs each contained only the string "=====" without quotation marks while other paragraphs ended with other strings):
=====$
=====$$

My only solution was to manually delete the break after 69 nonconsecutive paragraphs. I saw no regex solution.

If a newer version of Writer has fixed this, that's good enough. The version I'm reporting on has still been getting updated even after reputedly being at EOL.

I guessed my hardware.
Comment 1 Buovjaga 2015-05-06 16:24:40 UTC
Yep this would be useful. Devs can comment, if there is some law of physics that prevents implementation.
Comment 2 Buovjaga 2017-12-26 12:15:47 UTC
*** Bug 112575 has been marked as a duplicate of this bug. ***
Comment 3 Buovjaga 2017-12-29 09:33:34 UTC
*** Bug 114548 has been marked as a duplicate of this bug. ***
Comment 4 V Stuart Foote 2018-02-16 23:58:52 UTC
Working well with Windows builds current master.
Version: 6.1.0.0.alpha0+ (x64)
Build ID: e1082e45361a92a31adedcc3ed0a35c704bca543
CPU threads: 8; OS: Windows 10.0; UI render: GL; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-02-15_23:24:06
Locale: en-US (en_US); Calc: group

*** This bug has been marked as a duplicate of bug 102374 ***
Comment 5 Justin L 2018-02-17 10:59:38 UTC
Not a duplicate of bug 102374.  That bug only affects searching for only the paragraph endmark itself - or for empty paragraphs.  This bug is searching for text PLUS the paragraph endmark. That is still not possible.  In this case, the $ only requires that the text come at the end of the paragraph, but doesn't select the paragraph mark itself. Thus the paragraph mark is not replaced.

Bug 108256 is a better (unfixed) duplicate since it refers to including the paragraph mark with FOLLOWING text.

*** This bug has been marked as a duplicate of bug 108256 ***