
guru_perl
Novice
Dec 19, 2010, 1:40 AM
Post #1 of 2
(5261 views)
|
Why isnt my regex matching anything?
|
Can't Post
|
|
For the input line shown below,the regex is not matching,I couldnt find anything wrong?Need your input perl gurus
INPUT LINE:.\\directory\programfiles\documents\data\lookup\file.c;//programfiles/documents/data/lookup/file.c - LABEL : 5 if (my ($key, $value) = $line =~ /\.\\(.+?)-\d+;.+?;(.+?)\s-\s/) { } OUTPUT:- KEY:\\directory\programfiles\documents\data\lookup\file.c VALUE://programfiles/documents/data/lookup/file.c
(This post was edited by guru_perl on Dec 19, 2010, 2:16 AM)
|