Felix,

Thanks about "^^^".  I forget to say that I will not know what the date is,
anyone can change it.

Tanks,

Jerry

-----Original Message-----
From: Felix Geerinckx [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 6:55 AM
To: [EMAIL PROTECTED]
Subject: Re: regx way


on Fri, 09 Aug 2002 11:30:54 GMT, [EMAIL PROTECTED] (Jerry Preston)
wrote:

> I am looking for a simple way to replace a date in a string:
>
>    "%makesql(FORD,waf_end,010602 &nowdate,all,0,pdv.CHEVY);\n",
>                                            ^^^^^^^^
> to
>    "%makesql(FORD,waf_end,080902 &nowdate,all,0,pdv.CHEVY);\n",
>                                            ^^^^^^^^

Don't use ^^^^^ unless you are writing your message with a monospaced
font. (It tends to confuse people ;-)

Try:

$string = "%makesql(FORD,waf_end,010602 &nowdate,all,0,pdv.CHEVY);\n"
$string =~ s/010602/080902/;

--
felix

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to