Multi Commander > Script

Stripping Lines of Text - replacing searched text with nothing

(1/1)

Vir4lPl47ypu5:
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: ---\CECSTART\NONE\GZIP\BASE64\
H4sIAAAAAAAAAJVXbXPiOAz+3l/hy3dwwnsZ490UaJs9oAyh7XV2dhhv4raZTZxMHNqyv/5k
...
bw29+BdI9UQsYQ0AAA==
\CECEND\
--- End code ---

Mathias (Author):
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:
Thanks!!

Navigation

[0] Message Index

Go to full version