in reply to matching a multi line string with separated by diffrent delimeters

Although kennethk's solution works perfectly well to generate the match results you've listed, here's another option:

my($first, $second, $third) = (split /\n/, $string)[0,2,4];

Hope this helps!

  • Comment on Re: matching a multi line string with separated by diffrent delimeters
  • Download Code