Beginners need to help the good monks to help beginners. And whether or not you're a beginner, a good general principle is 'Help us to help you': see How do I post a question effectively? and perhaps How (Not) To Ask A Question.
Guessing from other replies in this thread, the code example originally provided was totally inadequate or maybe totally absent. This helps absolutely no one.
In reply to Re^3: trouble with regular expressions
by AnomalousMonk
in thread trouble with regular expressions
by programmer.perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |