by chas.owens@[EMAIL PROTECTED]
(Chas. Owens)
Apr 21, 2008 at 07:24 AM
On Mon, Apr 21, 2008 at 7:17 AM, <Irfan.Sayed@[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 far? You might consider reading the following
documentation on how regexes and substitutions work (hint: this is an
incredibly simple substitution):
perldoc perlretut
perldoc perlrequick
perldoc perlre
perldoc perlop
or
http://perldoc.perl.org/perlretut.htmlhttp://perldoc.perl.org/perlrequick.htmlhttp://perldoc.perl.org/perlre.htmlhttp://perldoc.perl.org/perlop.html
--
Chas. Owens
wonkden.net
The most im****tant skill a programmer can have is the ability to read.