develooper Front page | perl.beginners | Postings from February 2002

Reg Exp help

Thread Next
From:
Busse, Rich
Date:
February 26, 2002 06:35
Subject:
Reg Exp help
Message ID:
E53C5C383912D511BB0F00508BB80B9A01BD0E8C@exbhbhmb06.us.dnb.com
I am capturing the output of a command in a string:

	$Out = `$Cmd` ;

The output always looks like:

List of Templates and Template Groups assigned to 'somenode.us.dnb.com':
====================================================================
|GRP| SBS-DSM
====================================================================
Operation successfully completed.

It's always on 5 separate lines. How do I extract what follows |GRP| on the
third line to a variable? TIA...

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About