Hi All,

need help on regular expression.
i have string like this

 "ProductName" = "8:EXFO RTU System 1.2.42"
 
now i want regular expression in such a way that it will change the line to :

 "ProductName" = "8:EXFO RTU System 1.2.43"
 
i tried in the following way.

    $_ =~ s/:(.*)\s(.*)\s(.*)\s\d*.\d*.\d*/:(.*)\s(.*)\s(.*)\s$chver)/;
where $chver is variable which contains value as 1.2.43

it is not giving result as exprected.

plz advice

regards
irf



      

Reply via email to