in reply to Parse a large string

... print join "\n", $text =~ /(?:Nullam|Donec) [^.]+ (?:augue|libero)/gx +; ...

Regards

mwa

Replies are listed 'Best First'.
Re^2: Parse a large string
by Bloodnok (Vicar) on Mar 10, 2009 at 13:10 UTC
    I'm with you on this one, mwah, but wonder what you need the x modifier for - it appears to make no difference...

    A user level that continues to overstate my experience :-))
      I'm with you on this one, mwah, but wonder what you need the x modifier for - it appears to make no difference...

      Right, it doesn't make any difference here by accident or simplicity of the problem ;-)

      The /x is meant to mark withespaces in regexes as "not meant as part of the expression".

      Thanks & Regards

      mwa