Steve Main wrote: > > Hello list, Hello,
> 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. Yes, it is trying to match ORA--600 (two hyphens.) > Anyone out there willing to get me on the right track? if ( $line =~ /^ORA-(\d+)$/ ) { John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]