"be consistent" | |
PerlMonks |
Parsing Exercise setby David Arnold (Initiate) |
on Apr 13, 2005 at 21:06 UTC ( [id://447586]=perlquestion: print w/replies, xml ) | Need Help?? |
David Arnold has asked for the wisdom of the Perl Monks concerning the following question: All, I have a files of exercises written in latex that I'd like to parse. I am new to this so be kind. The exercise occurs between pairs. Inside this pair are pairs: \begin{exertext}...\end{exertext} delimiting the problem statement. \begin{soln}...\end{soln} delimiting the problem solution \begin{answer}...\end{answer} delimiting a backanswer that goes in the back of the textbook. Finally, there are sporadic directions that are included betwen \begin{instructions}...\end{instructions} pairs. A short example:
Is there a module on CPAN which I can use to parse this document. My goal is to put all the exercise problem statements (delimited by \begin{exertext}...\end{exertext}) in a file, all the solutions in a second file, all the backanswers in a third file, etc. Thanks.
Back to
Seekers of Perl Wisdom
|
|