Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to check if a field value has a date in the first part of the value and if it does then delete that part of the value:
To look like this:(08/04/05) Information here etc...
My attempt is not working. Please advise.Information here etc...
if($field =~ /d2\/d2\/d2/) { s/1//; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Take out date part of my field value
by socketdave (Curate) on Aug 24, 2005 at 14:45 UTC | |
by derby (Abbot) on Aug 24, 2005 at 14:54 UTC | |
Re: Take out date part of my field value
by pbeckingham (Parson) on Aug 24, 2005 at 14:41 UTC | |
Re: Take out date part of my field value
by davidrw (Prior) on Aug 24, 2005 at 14:53 UTC | |
Re: Take out date part of my field value
by punkish (Priest) on Aug 24, 2005 at 17:03 UTC | |
Re: Take out date part of my field value
by sapnac (Beadle) on Aug 24, 2005 at 20:29 UTC |
Back to
Seekers of Perl Wisdom