Look at the documentation for perlre, chomp, and perlretut. Others have given you actual solutions to your (very homeworkish) question.
--MidLifeXis
In reply to Re: what regular expression do I need?
by MidLifeXis
in thread what regular expression do I need?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |