in reply to
pattern matching
Read
Writeup Formatting Tips
, then update your post using "code" tags.
If you are parsing Verilog code, consider
Verilog-Perl
Comment on
Re: pattern matching
In Section
Seekers of Perl Wisdom