Re: Another regular expression substitute question

2006-07-27 Thread Mark Woodward
Hi Xiaoshen, On Wed, 26 Jul 2006 09:27:33 + Xiaoshen Li <[EMAIL PROTECTED]> wrote: > Dear All, > Thank you very much for all your responses. I am sorry. My file is a > little different now. It is like following: > > 1 data_34.dat pre= -7872.11914060 post= -7812.80517600 diff= > 59.313964

Re[2]: Another regular expression substitute question

2006-07-26 Thread Alan G Isaac
>> :[EMAIL PROTECTED](\S\+\)[EMAIL PROTECTED] On Wed, 26 Jul 2006, (MDT) [EMAIL PROTECTED] apparently wrote: > I know you lose some generality with this solution... > :%s/.*\(data_\d*\.dat\).*/\1 > but it looks a little easier on the eyes. Any cons > to doing it this way? One extra charact

Re: Another regular expression substitute question

2006-07-26 Thread dcuaron
I know you lose some generality with this solution... :%s/.*\(data_\d*\.dat\).*/\1 but it looks a little easier on the eyes. Any cons to doing it this way? On Wed, 26 Jul 2006, Alan G Isaac wrote: > On Wed, 26 Jul 2006, Xiaoshen Li apparently wrote: > > Thank you very much for all your response

Re: Another regular expression substitute question

2006-07-26 Thread Alan G Isaac
On Wed, 26 Jul 2006, Xiaoshen Li apparently wrote: > Thank you very much for all your responses. I am sorry. My file is a > little different now. It is like following: > 1 data_34.dat pre= -7872.11914060 post= -7812.80517600 diff= 59.31396460 > 2 data_5.dat pre= -7986.76147466 post= -7926.940

Re: Another regular expression substitute question

2006-07-26 Thread A.J.Mechelynck
Xiaoshen Li wrote: Dear All, Thank you very much for all your responses. I am sorry. My file is a little different now. It is like following: 1 data_34.dat pre= -7872.11914060 post= -7812.80517600 diff= 59.31396460 2 data_5.dat pre= -7986.76147466 post= -7926.94091800 diff= 59.82055666

Re: Another regular expression substitute question

2006-07-26 Thread Trent Gamblin
On Wed, 2006-07-26 at 09:27 +, Xiaoshen Li wrote: > Dear All, > Thank you very much for all your responses. I am sorry. My file is a > little different now. It is like following: > > 1 data_34.dat pre= -7872.11914060 post= -7812.80517600 diff= 59.31396460 > 2 data_5.dat pre= -7986.761474

Another regular expression substitute question

2006-07-26 Thread Xiaoshen Li
Dear All, Thank you very much for all your responses. I am sorry. My file is a little different now. It is like following: 1 data_34.dat pre= -7872.11914060 post= -7812.80517600 diff= 59.31396460 2 data_5.dat pre= -7986.76147466 post= -7926.94091800 diff= 59.82055666 3 data_16.dat pre=