Re: Replace various regex

2010-02-15 Thread Martin
On Feb 15, 2:27 pm, Jean-Michel Pichavant wrote: > Martin wrote: > > On Feb 15, 2:03 pm, Jean-Michel Pichavant > > wrote: > > >> Martin wrote: > > >>> Hi, > > >>> I am trying to come up with a more generic scheme to match and replace > >>> a series ofregex, which look something like this... > > >

Re: Replace various regex

2010-02-15 Thread Jean-Michel Pichavant
Martin wrote: On Feb 15, 2:03 pm, Jean-Michel Pichavant wrote: Martin wrote: Hi, I am trying to come up with a more generic scheme to match and replace a series of regex, which look something like this... 19.01,16.38,0.79,1.26,1.00 ! canht_ft(1:npft) 5.0, 4.0, 2.0, 4

Re: Replace various regex

2010-02-15 Thread Martin
On Feb 15, 2:03 pm, Jean-Michel Pichavant wrote: > Martin wrote: > > Hi, > > > I am trying to come up with a more generic scheme to match and replace > > a series of regex, which look something like this... > > > 19.01,16.38,0.79,1.26,1.00 ! canht_ft(1:npft) > > 5.0, 4.0, 2.0, 4.0, 1.0 !

Re: Replace various regex

2010-02-15 Thread Jean-Michel Pichavant
Martin wrote: Hi, I am trying to come up with a more generic scheme to match and replace a series of regex, which look something like this... 19.01,16.38,0.79,1.26,1.00 ! canht_ft(1:npft) 5.0, 4.0, 2.0, 4.0, 1.0 ! lai(1:npft) Ideally match the pattern to the right of the "!" sign (e.g

Re: Replace various regex

2010-02-12 Thread Martin
On Feb 12, 8:30 pm, MRAB wrote: > McColgst wrote: > > On Feb 12, 2:39 pm, Martin wrote: > >> Hi, > > >> I am trying to come up with a more generic scheme to match and replace > >> a series of regex, which look something like this... > > >> 19.01,16.38,0.79,1.26,1.00   !  canht_ft(1:npft) > >> 5.0

Re: Replace various regex

2010-02-12 Thread MRAB
McColgst wrote: On Feb 12, 2:39 pm, Martin wrote: Hi, I am trying to come up with a more generic scheme to match and replace a series of regex, which look something like this... 19.01,16.38,0.79,1.26,1.00 ! canht_ft(1:npft) 5.0, 4.0, 2.0, 4.0, 1.0 ! lai(1:npft) Ideally match the pat

Re: Replace various regex

2010-02-12 Thread Martin
On Feb 12, 7:57 pm, McColgst wrote: > On Feb 12, 2:39 pm, Martin wrote: > > > > > > > Hi, > > > I am trying to come up with a more generic scheme to match and replace > > a series of regex, which look something like this... > > > 19.01,16.38,0.79,1.26,1.00   !  canht_ft(1:npft) > > 5.0, 4.0, 2.0,

Re: Replace various regex

2010-02-12 Thread McColgst
On Feb 12, 2:39 pm, Martin wrote: > Hi, > > I am trying to come up with a more generic scheme to match and replace > a series of regex, which look something like this... > > 19.01,16.38,0.79,1.26,1.00   !  canht_ft(1:npft) > 5.0, 4.0, 2.0, 4.0, 1.0      !  lai(1:npft) > > Ideally match the pattern