rupesh has asked for the wisdom of the Perl Monks concerning the following question:
I have today's date: 8-25-03. Based on this date, im trying to match a pattern for last week.8-12-03,somename,someaddress....<br> 8-13-03,someothername,someaddress....
The week starts on Monday and ends on a Sunday$string =~ /^7\-[26-]\-03/ || $string =~ /^8\-[1-2]\-03/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Week Algorithm
by edan (Curate) on Aug 25, 2003 at 06:50 UTC | |
|
Re: Week Algorithm
by esh (Pilgrim) on Aug 25, 2003 at 07:16 UTC | |
by rupesh (Hermit) on Aug 25, 2003 at 07:35 UTC | |
by edan (Curate) on Aug 25, 2003 at 08:03 UTC | |
|
Re: Week Algorithm
by blokhead (Monsignor) on Aug 25, 2003 at 07:35 UTC | |
|
Re: Week Algorithm
by fglock (Vicar) on Aug 25, 2003 at 16:38 UTC |