in reply to Regex failing when the line starts with "./"

try
my ($value) = $line =~ /\.[\\\/](.*);/;

Replies are listed 'Best First'.
Re^2: Regex failing when the line starts with "./"
by davido (Cardinal) on Feb 03, 2011 at 09:43 UTC
    my ($value) = $line =~ /\.[\\\/](.*);/;

    That won't match lines starting with '/.'

    Update: ./ /. \. .\.... too many dots and slashes. I got it wrong.

    :)


    Dave