Bug 90625 - EDITING: restrict search to the beginning of a paragraph no longer working when combined with other wildcard searches
Summary: EDITING: restrict search to the beginning of a paragraph no longer working wh...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.2.2 release
Hardware: Other Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-15 04:48 UTC by Jon Rubin
Modified: 2015-04-18 01:09 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 Jon Rubin 2015-04-15 04:48:00 UTC
When using advanced find and replace the ^ symbol should restrict searches to the beginning of a paragraph.
If I use a specific search e.g. : 
^q
then this works
It doesn't work if I use a broader search e.g. :
^[a-z]

This search will find every single letter in a document.

Using $ to find the end of a paragraph does still work.
Comment 1 Buovjaga 2015-04-17 18:50:47 UTC
I take it that by "advanced find and replace" you mean find & replace with regular expressions and not the extension by the same name.

It seems ^ with grouping finds every letter or number in the paragraph as long as the paragraph starts with the correct type and continues with it. If the type changes mid-paragraph, it will stop finding them.

So if I have ^[0-9] and the content:

1111aa111 <- it will not find the 1s that come after aa.
333 <- will find all of those 3s.
aa23 <- will not find 2 or 3.

This seems to be fixed in master, though, so I'm closing as WFM.
I don't have time to install 4.4.3 RC1 right now, but you might want to try it: http://www.libreoffice.org/download/pre-releases/

Ubuntu 14.10 64-bit 
Version: 4.4.2.2
Build ID: 40m0(Build:2)
Locale: en_US

Version: 4.5.0.0.alpha0+ (x64)
Build ID: 53d7c88da82f6d16c0c9a45a86a3f9d505764605
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-10_02:14:19
Locale: fi_FI
Comment 2 Jon Rubin 2015-04-18 01:09:34 UTC
Installed 4.4.3 RC1 and it is indeed fixed. Thanks.