Multi Commander Support Forum

Multi Commander => Script => Topic started by: Vir4lPl47ypu5 on June 28, 2017, 10:47:17

Title: Stripping Lines of Text - replacing searched text with nothing
Post by: Vir4lPl47ypu5 on June 28, 2017, 10:47:17
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\
Title: Re: Stripping Lines of Text - replacing searched text with nothing
Post by: Mathias (Author) 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
Title: Re: Stripping Lines of Text - replacing searched text with nothing
Post by: Vir4lPl47ypu5 on June 30, 2017, 07:35:42
Thanks!!