#!/usr/bin/perl -w use strict; my $foo = "system.sysUpTime.0 = Timeticks: (28926461) 8:21:04.61"; $foo =~ /\)(.*)$/g; print $1 . "\n";