Re: help in reg. exp.

2008-04-21 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > I have string like OMS.FD.08.03.000.0 Now my req. is that if the string > contains .0 at the end then I want to remove that .0 but if any other > digit is there other than .0 then don't do anything. > > For example: if string is : OMS.FD.08.03.000.0 then regular expre

Re: help in reg. exp.

2008-04-21 Thread J. Peng
On Mon, Apr 21, 2008 at 7:17 PM, <[EMAIL PROTECTED]> wrote: > Hi All, > > > > I have string like OMS.FD.08.03.000.0 Now my req. is that if the string > contains .0 at the end then I want to remove that .0 but if any other > digit is there other than .0 then don't do anything. > > > > For examp

Re: help in reg. exp.

2008-04-21 Thread Chas. Owens
On Mon, Apr 21, 2008 at 7:17 AM, <[EMAIL PROTECTED]> wrote: snip > I have string like OMS.FD.08.03.000.0 Now my req. is that if the string > contains .0 at the end then I want to remove that .0 but if any other > digit is there other than .0 then don't do anything. snip What have you tried so