in reply to modifying list of numbers
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.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: modifying list of numbers
by jc23 (Acolyte) on Jul 18, 2003 at 15:47 UTC | |
by sauoq (Abbot) on Jul 18, 2003 at 20:26 UTC | |
by jc23 (Acolyte) on Jul 18, 2003 at 21:11 UTC |