in reply to Re: Regular expression and
in thread Regular expression for two required words
Two nitbits:
- You don't need the 's' modifier there, as the you already have the string in one line;
- This is a place to use grep as a filter: @matched = grep /.../, <DATA>;
Jeroen
|
---|
In Section
Seekers of Perl Wisdom