in reply to How to avoid the greedy matching failures?.

The short answer is that (it is well known that) regexen are not currently the best tool to parse *ML text. (No, I'm not talking about SML, OCAML et similia!)

However non greedy pattern matching is described at perldoc perlre.

  • Comment on Re: How to avoid the greedy matching failures?.