You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by RGB ES <rg...@gmail.com> on 2013/01/12 18:42:32 UTC

RegExp do not work when "Format" is selected

Some trouble with the new RegExp engine in Writer. Forum discussion:
http://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=58510

On Writer, when you do a S&R you can use regular expressions or set a
format (Format button on "More options") but it seems you cannot do both at
the same time

https://issues.apache.org/ooo/show_bug.cgi?id=121482

This is a quite strange bug. Suppose you have a text with parts on italic,
and you need to search for those parts and "tag" them. On previous versions
it was possible to search for .* selecting "Italics" and replace by
<i>&</i>, for example, but if you try this on 3.4.1 or the latests builds
from trunk the "match" goes beyond the formatted text up to the end of the
paragraph.

If you left the Search box empty but set the format, the search find only
the italic text... but then you cannot use the Replace box (you obtain
<i>&</i>, not the original text, tagged).

If you use

[:alpha:]*
\w*
...

the S&R operation will work... but only with single words: no spaces, no
punctuation signs, and for the first one no numbers will be selected (which
is correct, but that do not solve the original problem)... so the last test
is to use

[:any:]*

expression that will fail in the same way .* fails: selecting from the
first italic character up to the end of the paragraph.

I do not remember this problem on 3.4.0.

Regards
Ricardo

Re: RegExp do not work when "Format" is selected

Posted by RGB ES <rg...@gmail.com>.
2013/1/14 Herbert Duerr <hd...@apache.org>

> On 12.01.2013 18:42, RGB ES wrote:
>
>> Some trouble with the new RegExp engine in Writer. Forum discussion:
>> http://forum.openoffice.org/**en/forum/viewtopic.php?f=7&t=**58510<http://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=58510>
>>
>> On Writer, when you do a S&R you can use regular expressions or set a
>> format (Format button on "More options") but it seems you cannot do both
>> at
>> the same time
>>
>> https://issues.apache.org/ooo/**show_bug.cgi?id=121482<https://issues.apache.org/ooo/show_bug.cgi?id=121482>
>>
>
> Thanks for catching this! These problems are fixed now. Please verify with
> the next nightly build (i.e. revision>=1432869) from our buildbots
> http://ci.apache.org/projects/**openoffice/<http://ci.apache.org/projects/openoffice/>
>
>

Thanks you for solving this!!!

Regards
Ricardo




> Herbert
>

Re: RegExp do not work when "Format" is selected

Posted by RGB ES <rg...@gmail.com>.
2013/1/14 Herbert Duerr <hd...@apache.org>

> On 12.01.2013 18:42, RGB ES wrote:
>
>> Some trouble with the new RegExp engine in Writer. Forum discussion:
>> http://forum.openoffice.org/**en/forum/viewtopic.php?f=7&t=**58510<http://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=58510>
>>
>> On Writer, when you do a S&R you can use regular expressions or set a
>> format (Format button on "More options") but it seems you cannot do both
>> at
>> the same time
>>
>> https://issues.apache.org/ooo/**show_bug.cgi?id=121482<https://issues.apache.org/ooo/show_bug.cgi?id=121482>
>>
>
> Thanks for catching this! These problems are fixed now. Please verify with
> the next nightly build (i.e. revision>=1432869) from our buildbots
> http://ci.apache.org/projects/**openoffice/<http://ci.apache.org/projects/openoffice/>
>
>
Working great on 1433282

Thanks again!

Ricardo



> Herbert
>

Re: RegExp do not work when "Format" is selected

Posted by Herbert Duerr <hd...@apache.org>.
On 12.01.2013 18:42, RGB ES wrote:
> Some trouble with the new RegExp engine in Writer. Forum discussion:
> http://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=58510
>
> On Writer, when you do a S&R you can use regular expressions or set a
> format (Format button on "More options") but it seems you cannot do both at
> the same time
>
> https://issues.apache.org/ooo/show_bug.cgi?id=121482

Thanks for catching this! These problems are fixed now. Please verify 
with the next nightly build (i.e. revision>=1432869) from our buildbots 
http://ci.apache.org/projects/openoffice/

Herbert