my $year = 2003 s/(copyright\s+)(\d{4})(?:-\d{4})?/$1 . ($2 eq $year ? $2:"$2-$year")/ +ie;
That won't handle something like "copyright 1990, 1991" though. Nor will it handle "Copyright (C) 1990-2003".
-sauoq "My two cents aren't worth a dime.";
In reply to Re: modifying list of numbers
by sauoq
in thread modifying list of numbers
by jc23
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |