Lookahead and Lookbehind in AltSearch

Discussions about using 3rd party extension with OpenOffice.org

Lookahead and Lookbehind in AltSearch

Postby silvain » Mon Mar 28, 2016 2:39 pm

AltSearch extension is a very useful extension (Alternative Search and Replace).
There is one limitation I would like to overcome:
Lookahead and Lookbehind Regexp feature does not seem to function
although it does work in the normal Search and Replace (LibreOffice 5) with Regexp enabled.
It would be nice to have this feature working in AltSearch also.
For example
Code: Select all   Expand viewCollapse view
(?<=\()[^\(\)]*(?=\))

searches expressions in parentheses, selecting the expression itself, not the parenthesis around
(
Code: Select all   Expand viewCollapse view
(?<=\()
and
Code: Select all   Expand viewCollapse view
(?=\))
are the lookahead and lookbehind)
LibreOffice 5.0.3.2 - Windows 7 and Linux Ubuntu 14.04
silvain
 
Posts: 3
Joined: Thu Dec 31, 2015 6:20 pm

Return to Extensions

Who is online

Users browsing this forum: No registered users and 2 guests