extracting multi-line text.
Im still fairly new at this im currently reading Beginning C# 2008 and have learned some basics on string manipulation.
I can look for text in a single line text box and extract set # of letters after it but I have no idea how to use that knowledge to accomplish the following objective.
I have a file thats got text pretty much all over the place its kind of chaotic however its got enough consistancy to where I know this can be accomplished.
some lines have the following: ["texthere"] = {
other lines have [rank] = "texthere",
they alternate, so I want to search for [" and grab all text until "] = { then I want to continue until find a line with [rank] = " and grab all text until ",
Edit: Apparently the knowledge I have is enough to handle this task...sort of. Im finding the index of [" and then the index of "] using that info to grab the text from inside then deleting the text. Since I have no idea how to find the next result without deleting the text.
|