Harold Castro [HC], on Thursday, February 17, 2005 at 22:03 (-0800
(PST)) wrote:

HC>   I'm parsing a log file that contains numbers
HC> enclosed by []. Ex. [1108702375]

$string = '[1108702375] text [232134324] text...';

while ( $string =~ /\[(\d+)\]/g ) { print $1 }

helps ?

-- 

 ...m8s, cu l8r, Brano.

["Hello, 1-900-SPANK-ME.  How may we help you..." -- Crow T. Robot]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to