Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • what did you try until now? Commented Mar 10, 2019 at 5:40
  • I did split the large file, delete the partial files, which did contain my regex and assemble them reverse to the whole. However, that is more likely a slower / more dirty process over endless partial files Commented Mar 10, 2019 at 6:41
  • @Olaf Just to be clear, you want to remove the patterns matching your regex from the file. Is that correct? Commented Mar 10, 2019 at 6:45
  • YES. In fact, that are emails, where attachments get removed, with the aging of the mails, as a huge number of clients abuses the mail-servers as storage. After 8 years and longer, several with attachments forwarded, no 35MB email with the attachments is useful. I only want to preserve the textual content Commented Mar 10, 2019 at 6:52