On 3/28/07, Brandino Andreas <[EMAIL PROTECTED]> wrote:
i am trying to parse the output of a command. The text is multilined. I would like to match the first word after a specific text. for example: text1: value1 text2: value2
Perhaps you want this? m{text1:\s+(.*?)\s+text2:\s+(.*)}s Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/