my ($thirdline) = $contents =~ m/Line3 : ([^\n]+)/s;