-1

How can I select every text between base64 and ==?

Please, I have tried a whole lot of REGEX without success.

I have an exported mailbox file from Apple Mail.
I want to simply delete the image data (replace the Base64 data with nothing).

Every solution I've found is select every text between the first base64 and the last ==, which is not helping.

Geri Borbás
  • 15,810
  • 18
  • 109
  • 172

1 Answers1

0

You can try like this in your preferred programming language. I've used JavaScript for eg.

newStr = string.replace(/base64(.*?)\=\=/, "")
lkdhruw
  • 572
  • 1
  • 7
  • 22