[Issue] Regexp + format search broken in 3.4.1?

Discuss the word processor

[Issue] Regexp + format search broken in 3.4.1?

Postby shalott » Thu Jan 03, 2013 4:24 am

This used to work just fine:

Find
- regular expressions checked
- format -> italic selected
- find text ".*"
- replace text "<em>&</em>"

It now instead matches text all the way to the end of the line, even if the italicized portion is only a single word in the line.

I see that the regexp engine changed in 3.4 but as far as I can tell from reading the docs, the syntax for this should be unchanged. Am I missing something?
Last edited by Hagar Delest on Thu Jan 03, 2013 6:39 pm, edited 1 time in total.
Reason: tagged the thread as Issue (link to a bug report).
OpenOffice 3.4.1 on MacOS 10.8.2
shalott
 
Posts: 1
Joined: Thu Jan 03, 2013 4:20 am

Re: regexp + format search broken in 3.4.1?

Postby acknak » Thu Jan 03, 2013 5:12 am

I see the same thing. It seems there is no bug reported for it yet.

[Tutorial] Reporting bugs or suggestions
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: regexp + format search broken in 3.4.1?

Postby FJCC » Thu Jan 03, 2013 5:17 am

The Find works as expected for me in 3.4.1 if I leave the Search For box blank but set the format to italic. This is different than what I see in 3.3 where a blank Search For box does not work.
Windows 10 and Linux Mint, since 2017
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
FJCC
Moderator
 
Posts: 7229
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Regexp + format search broken in 3.4.1?

Postby RGB » Thu Jan 03, 2013 6:27 pm

See this report: Bug 121482 - Regular expressions Search for bold word select all paragraph

I just tried and if you set the search box to search backwards you get really weird results...

 Edit: On January 14, Herbert Duerr fixed the problem on "trunk": the fix will be available on 4.0 
Last edited by RGB on Tue Jan 15, 2013 1:43 am, edited 1 time in total.
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibO
User avatar
RGB
 
Posts: 1454
Joined: Mon Oct 08, 2007 1:34 am

Re: [Issue] Regexp + format search broken in 3.4.1?

Postby RGB » Sat Jan 12, 2013 3:54 pm

Doing some experiments I found the following: if instead of searching for .* you search for

[:alpha:]*

RegExp + formatting works as intended. The problem is then only with the dot.
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibO
User avatar
RGB
 
Posts: 1454
Joined: Mon Oct 08, 2007 1:34 am


Return to Writer

Who is online

Users browsing this forum: Google [Bot] and 18 guests