in reply to •Re: modifying list of numbersin thread modifying list of numbers
my $year = 2003 s/(copyright\s+)(\d{4})(?:-\d{4})?/$1 . ($2 eq $year ? $2:"$2-$year")/ +ie; <p> [download]
thanks! jc