Coding Help Starting and Ending with a certain Character

It doesn't work if I close it with '<'

What i gave you isn't the whole code. The rest of it uses that parsed data and does a bunch of algebra with it.

Its a lot of code but I need the data to get parsed cause the variables i,j,k,ect.... are called many times throughout the rest of the code