Hey folks,
I was wondering whther folk could give me a little advice over splitting and searching.
I'm trying to parse XML files, basically all I want to do is strip away all the Tags, pretty simple I thought, but I'm having major problems with it.
I thought that searching through the XML file line by line and removing the Tags with a substite operator would work, so
but that ended up removing just about everything, so next I thought I'll try and split it up by the tags so
or
But these litle snippet splits every character into the array.
I'm still having no joy in the situation, I assume I'm doing something wrong with the Syntax of the search.
I know that this is something super simple, so I know you guy's will solve the problem in 5 minutes and then laugh at me for the five minutes after that.
Thanks alot
I was wondering whther folk could give me a little advice over splitting and searching.
I'm trying to parse XML files, basically all I want to do is strip away all the Tags, pretty simple I thought, but I'm having major problems with it.
I thought that searching through the XML file line by line and removing the Tags with a substite operator would work, so
Code:
$line = s/<.+>//;
Code:
@linesplit = split(<*>, $line);
Code:
@linesplit = split(<.+>, $line);
I'm still having no joy in the situation, I assume I'm doing something wrong with the Syntax of the search.
I know that this is something super simple, so I know you guy's will solve the problem in 5 minutes and then laugh at me for the five minutes after that.
Thanks alot