in reply to regular expression

What exactly do you want to match?
This line in a big file? some words out of it?
please read how (not) to ask a question if you want help.

#!/usr/bin/perl use Data::Dumper; use strict; my $ln = "HOST_RESOURCE_MONITOR rtbd:service=ResourceMonitorService,na +me=ResourceMonitor,type=HOST true Started 1 day, 12 hours, 2 minutes, + 30 seconds and 476 milliseconds"; if ($ln =~ m/^HOST.*?seconds$/ ) { print "ok"; }


"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.