in reply to perl string extract

Try making the comma optional?

$line =~ /logfile\s*=\s*([^,]*),?/;

Replies are listed 'Best First'.
Re^2: perl string extract
by anu_1 (Acolyte) on Oct 04, 2010 at 06:50 UTC
    Thanks a lot ..