Author Topic: Stripping Lines of Text - replacing searched text with nothing  (Read 19440 times)

Vir4lPl47ypu5

  • Newbie
  • *
  • Posts: 3
    • View Profile
I have base64 encoded text with a header and footer line that I need to remove before decoding.  Multi-Script, MC.Utils.FindAndReplace will not accept REPLACEWITH="" .  Is there a way to do this?

For example, I need to remove the first and last lines of the text below.

Code: [Select]
\CECSTART\NONE\GZIP\BASE64\
H4sIAAAAAAAAAJVXbXPiOAz+3l/hy3dwwnsZ490UaJs9oAyh7XV2dhhv4raZTZxMHNqyv/5k
...
bw29+BdI9UQsYQ0AAA==
\CECEND\

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4271
    • View Profile
    • Multi Commander
Re: Stripping Lines of Text - replacing searched text with nothing
« Reply #1 on: June 28, 2017, 22:27:37 »
If you want to remove know lines.. like first and last..
You can use LoadArray that will return each line as an items in an array.. then remove first and last item. and resave the array with SaveArray

Vir4lPl47ypu5

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Stripping Lines of Text - replacing searched text with nothing
« Reply #2 on: June 30, 2017, 07:35:42 »
Thanks!!