Apache OpenOffice (AOO) Bugzilla – Issue 121482
Regular expressions Search for bold word select all paragraph
Last modified: 2017-05-20 10:34:17 UTC
Hello, Find & Replace Ctrl + F Regular expressions Sarch for (. +) and Format...> Bold only the group of bold characters ( the bold word) should be selected With AOO 3.4.1, it is the whole paragraph containing the bold word. http://forum.openoffice.org/fr/forum/download/file.php?id=52300&t=1 Procedure: http://forum.openoffice.org/fr/forum/download/file.php?id=52299 In a text of 2or 3 paragraphs, put bold words Ctrl + F> More Options Expression regular Sarch for: (. +) Format... > Bold Find > Cordially.
Based on my testing I can say: 1) The correct regular expression is (+.). The original comment had a space between the + and . which is not correct. 2) Thia scenario worked correctly in OOo 3.3.0 and in AOO 3.4.0. 3) Thia scenario fails in AOO 3.4.1. The behavior is that it selects, in each paragraph, from the first bolded character until the end of the paragraph.
I've just encountered the same problem with a combined regex/bold (or italic or underline) search-and-replace in OO Basic. Using AOO 3.4.1 on Windows 7 64-bit. This bug breaks the "Writer's Tools - Text Markup" menu item from the Writertools 1.9.1 extension (creates DokuWiki formatting). This part of the extension worked fine in OOO 3.3.0.
If you, on the search options set "Backwards" the results are even worst, with the selection going on to both sides of the formatted text.
Doing some experiments, if instead of searching for .* you sear for [:alpha:]* RegExp + formatting works as intended. The problem is then only with the dot.
Another test: the expression [:any:]* fails too (selects up to the end of the paragraph)
Confirming regression wrt 3.4.0. Test: CTRL-F, "Regular Expression" on, Search ".+" plus Format: Bold. In 3.4.0 select bold word only, in 3.4.1 selects until the end of paragraph.
"hdu" committed SVN revision 1432864 into trunk: #i121482# fix attributed text search for regular expression patterns
"hdu" committed SVN revision 1432869 into trunk: #i121482# fix backwards regexp search for matches overlapping search start
Thanks for catching this! They are fixed now. Please verify with the next nightly build (revision >= 1432869) from http://ci.apache.org/projects/openoffice/
I have been tested in AOO 3.5 and 4.0 the bug 121482 and it is not corrected, now i'll reopened the bug. Regars. Yurggent Alfredo
(In reply to comment #10) > I have been tested in AOO 3.5 and 4.0 the bug 121482 and it is not corrected, Since neither AOO 3.5 nor 4.0 are released yet it is important to know which development revision was tested. Please report the revision number that is reported (in the "Help->About" info on Windows/Unix or the "OpenOffice->About" info on Mac). Also a "tested, doesn't work, reopened" doesn't help much especially when the problem is reported to be solved, e.g. http://mail-archives.apache.org/mod_mbox/openoffice-dev/201301.mbox/%3cCAEtvNKdajyPK-OQ9P37sT6pHgVCF4UA8zUWDTJcK1yREJKYuxg@mail.gmail.com%3e Providing steps to reproduce the problem on a build based on a revision containing the supposed fix is essential. Thanks for your help!
*** Issue 121570 has been marked as a duplicate of this issue. ***
It's working on both, 4.0.0 and 4.0.1 on Linux 64 bits
Setting as Verified