in reply to Matching and extracting from file.

Hi Nisha,

I've made below changes in ur program. Try it. I don't know whether i've understand ur problem correctly or not.

$fname = "C:\\EITV10CMD\\base\\detection\\basic\_detection\\Filename\\ +DOIFFILE.COM"; while (<FH>) { chomp; my $found; if($_ =~ /^\Q$fname\E/i) { chomp($_); /\s*(\.){3}\s*(.*?)$/; #Trying to extract everthing after ... $found = $2; }

Cheers

--C