Re: help regex replacement

zilore mumba <[email protected]> Mon, 30 Apr 2012 14:28:14 -0700 (PDT)
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
sample input 

start_date = '2012-04-29_00:00:00','2012-04-29_00:00:00','2012-04-29_00:00:00',
 end_date   = '2012-05-01_00:00:00','2012-05-01_00:00:00','2012-05-01_00:00:00',

The model would have run on 29th May,  to produce a 48hour forecast to 1sr May 2012.
When I run it on 30th May it should produce a 48hour forecast to 2nd May, i.e. change the entries above so that start_date is 30th and end_date is 2nd May as below.

start_date = '2012-04-30_00:00:00','2012-04-30_00:00:00','2012-04-30_00:00:00',
 end_date   = '2012-05-02_00:00:00','2012-05-02_00:00:00','2012-05-02_00:00:00',




________________________________
 From: Michael Ludwig <[email protected]>
To: [email protected] 
Sent: Monday, April 30, 2012 8:00 PM
Subject: Re: help regex replacement
 
zilore mumba schrieb am 30.04.2012 um 10:14 (-0700):
> I have to automate a modle namelist by replacing the start and end
> date of the model run as per lines below.

Please provide two data items:

* sample input
* expected output

Michael
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs