in reply to Re: Regex failing
in thread Regex failing

Where is my understanding wrong?
(my $file_name) = $line =~ / \/ #match a front slash "/" [^\/]#dont match any more frontslashes (.*)#match everything after / and save \s-\s#match a " - " /;

Replies are listed 'Best First'.
Re^3: Regex failing
by fisher (Priest) on Feb 03, 2011 at 10:41 UTC
    Hmmm... semicolon? previously you said it begins with semicolon:
    (my $file_name) = $line =~ /;\/[^\/](.*)\s-\s/;