better has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to parse a table from a RTF file and parse each line from a table into an array. I tried to read it as a normal file into an array.
while (<$fhIn>) { @arr = split ("row", $_);
I would like to remove all the chart defining paramters, like:.
;cell}\pard\intbl{\fs20\f2\cf0\cb1After having parsed the table into an array, I tried with substitute: $_=~ s/foo//;/ But the wanted string doesn't grab the cell paramaters. They stay unchanged. All I can do is to delete single words like 'cell', 'cb1' etc.
Any hint how to start?
better
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: parsing a table
by hdb (Monsignor) on Apr 14, 2013 at 19:56 UTC | |
Re: parsing a table
by Anonymous Monk on Apr 15, 2013 at 01:41 UTC | |
Re: parsing a table
by space_monk (Chaplain) on Apr 15, 2013 at 11:41 UTC | |
Re: parsing a table
by hdb (Monsignor) on Apr 15, 2013 at 12:38 UTC |
Back to
Seekers of Perl Wisdom