[Libreoffice-bugs] [Bug 138752] regular expressions find with newline fails search
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 8 22:23:45 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=138752
--- Comment #1 from Eugene Miller <theerm at gmail.com> ---
This code however doesn't notice the `\n` at the end.
```
replace = document.createReplaceDescriptor()
replace.SearchRegularExpression = True
replace.SearchString = r"Pre\-Authorized\*\*\*\*(Pre\-Authorized[
\*]+)+\*\*\*Pre\-Authorized\n"
replace.ReplaceString = r""
document.replaceAll(replace)
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201208/52ca7218/attachment.htm>
More information about the Libreoffice-bugs
mailing list