https://bugs.documentfoundation.org/show_bug.cgi?id=159607

V Stuart Foote <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #20 from V Stuart Foote <[email protected]> ---
Regex *does* apply to the entire document, it just can not match a pattern
defined across paragraph bounds. 

The OP was a documentation issue, and the documentation issue was fixed:

https://git.libreoffice.org/help/commit/e3caa53e99709b7099611b67cf73e9bdbd8801ea

But, just so we are clear, the Find and Replace 'Regular Expressions' mode only
parses ICU regex for the 'Find:' field.

The 'Replace:' field currently *does not use ICU regex* and IIUC the meta
pattern handling for replacement is done directly in the edit engines.

Folks with sufficient interest can of course run a full regex edit against the
XML parts of an ODF archive.

So this is a documentation issue for folks to be so informed.

Enhancement for bug 38261 would be supporting the ICU regex lookaround handling
needed to match (Find:) across Paragraph objects. But also the work needed to
pass any regex match 'buffers' out of the Find: for use in the Replace: field.

With substantial refactoring to more tightly integrate ICU regex syntax for the
Replace:

It is essentially what is done in UNO with the AltSearch extension.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to