Regex works on regexr.com but it doesnt work on openoffice

Hi, i made this regular expression on regexr.com: \{(\n+.+[^{}]+\n)*\}
It selects everything i need inside { } for example:

{
asd
asd
asd
}

and it doesnt select text outside {} but it doesnt work on OpenOffice, it doesnt find any text to replace.
Thanks!

In OpenOffice and LibreOffice you cannot search and replace over paragraph limits. You have to get the Alternative search extension: https://extensions.libreoffice.org/extensions/alternative-dialog-find-replace-for-writer for that to work.

I don’t know regexr.com and I wouldn’t study it now.
In LibO the RegEx engine by ICU (with a few restrictions probably and one specific exception) is working.

However, LibO can apply a RegEx only to at most a paragraph at a time. Thus your \n will never accept paragraph breaks, but only hard linebreaks independent of what is specified for the used flavour of RegEx.

If you apply your Regex to your exmple text it will find what you expected as log as the line breaks inside are LF and not paragraph breaks.

I think because in LibreOffice regex works on parragraph basis. With writer there is an good extension https://extensions.libreoffice.org/extensions/alternative-dialog-find-replace-for-writer

The Expression is messed up, reduce it to sensefull : \{([^{}]+)\}

No, there is no expression in LO for find between open curlies and close curlies in next paragraph