<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - regular expressions find with newline fails search"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138752#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - regular expressions find with newline fails search"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138752">bug 138752</a>
              from <span class="vcard"><a class="email" href="mailto:theerm@gmail.com" title="Eugene Miller <theerm@gmail.com>"> <span class="fn">Eugene Miller</span></a>
</span></b>
        <pre>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)
```</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>