Below is the script i used to capture the secs
use strict;
use warnings;
my $n='Created posting 187294181 (sny/sny_AF8F46748A50416A9F1FF2BD7) in 0.261 secs';
my $m='Created posting 187294183';
if($n=~/Created\s+(resume|posting)\s+(\d+).*?([\d\.]*)/i)
{
print "$1 $2 $3\n";
}
Iam getting $3 as blank.Can anyone help me what mistake i have done in the regex to capture secs.Both the $m and $n should match the regex.
Output:
posting 187294181