http://qs321.pair.com?node_id=125035


in reply to Re: Regular expression and
in thread Regular expression for two required words

Two nitbits:
  1. You don't need the 's' modifier there, as the you already have the string in one line;
  2. This is a place to use grep as a filter: @matched  = grep /.../, <DATA>;

Jeroen