Python - Deleting the first 2 lines of a string

file, lines, parsing, python, string

Solution

I don't know what your end character is, but what about something like

postString = inputString.split("\n",2)[2]

The end character might need to be escaped, but that is what I would start with.

Problem

I've searched many threads here on removing the first two lines of a string but I can't seem to get it to work with every solution I've tried. Here is what my string looks like: ``` version 1.00 6992 [-4.32063, -9.1198, -106.59][0.00064, 0.99993, -0.01210][etc...] ``` I want to remove the first two lines of this Roblox mesh file for a script I am using. How can I do that?

Original source

Related problems