in reply to snmpget regex

#!/usr/bin/perl -w use strict; my $foo = "system.sysUpTime.0 = Timeticks: (28926461) 8:21:04.61"; $foo =~ /\)(.*)$/g; print $1 . "\n";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
()-()                                                      ()-()
 \"/    DON'T   BLAME   ME,   I  VOTED   FOR    PACO!       \"/
  `                                                          ` 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Replies are listed 'Best First'.
Re: Re: easy one this
by hysteriaweb (Initiate) on Mar 04, 2002 at 23:45 UTC
    Thank you very much ignatz