Grasshopper remove line with word from g-code

Can you upload the gh file itself?

It’s also helpful to have a bunch of typical text you expect to feed into the python component