jc23 has asked for the wisdom of the Perl Monks concerning the following question:
Given a string like "copyright 1990-2000, 2001. All rights reserved ..." I want to be able to search for the string containing the word copyright and then modifying the dates following it to read 1990-2003.
I found the regex that takes a list of numbers and produces the range as a result, but how do I modify it so that the regex will only modify the string containing the word copyright in it and modify the range to include the current year?
here's the link to the regex i was referring to click!
Thanks. jc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: modifying list of numbers
by sauoq (Abbot) on Jul 17, 2003 at 23:28 UTC | |
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 | |
|
•Re: modifying list of numbers
by merlyn (Sage) on Jul 18, 2003 at 00:39 UTC | |
by Cody Pendant (Prior) on Jul 18, 2003 at 01:12 UTC | |
by merlyn (Sage) on Jul 18, 2003 at 08:16 UTC | |
by Anonymous Monk on Jul 18, 2003 at 15:41 UTC | |
|
Re: modifying list of numbers
by JamesNC (Chaplain) on Jul 18, 2003 at 04:14 UTC |