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

Regex

Thread Next
From:
Steve Main
Date:
December 6, 2002 10:38
Subject:
Regex
Message ID:
cdcea45fa0082a9ce01ece33f47c88183df0eec4@mail.iceboxllc.com

Hello list,

I am trying to code a regex to pull out the number part of "ORA-600" or 600.
 
I have started with   "if ($line =~ m/^(ORA-)(\-[0-9]*)$/) {" but this
is obviously wrong.  

Anyone out there willing to get me on the right track?

thanks

Steve

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