Have a look at HTML::Parser. For more specific help try posting some of your code and making it look a little less like homework :)
In reply to Re: How to match pattern and next 5 lines?
by cjf
in thread How to match pattern and next 5 lines?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |