On Tue, Apr 1, 2008 at 12:35 PM, Suresh [EMAIL PROTECTED] wrote:
I am trying to replace
April 01 2008 with April 1 2008 or
April 02 2008 with April 2 2008, ..
This is a start
cfset Date = #Replace(#Date#,^[A-Za-z]+,April
)#
cfset myDate = April 01 2008 /
You'd want to use ReReplace, rather than Replace of course. But
probably just formatting it with dateformat() would work:
cfset Date = dateformat(date, d ) /
Also, don't know if this is still a problem in CF, but be careful
about calling variables date...
Cheers,
Kris
I am trying to
You can call them date as long as they're not form field variables.
-Original Message-
From: Kris Jones [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2008 2:48 PM
To: CF-Talk
Subject: Re: Help with Regular expression
You'd want to use ReReplace, rather than Replace of course
or SQL column names...
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2008 3:24 PM
To: CF-Talk
Subject: RE: Help with Regular expression
You can call them date as long as they're not form field variables.
-Original Message
Thanks,
I figured it out.
Thanh.
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 7:38 PM
To: CF-Talk
Subject: RE: Help with Regular _expression_
Why not simply use replaceList().
Str = replaceList(str,
Why not simply use replaceList().
Str = replaceList(str, .,1st,2nd,3rd,4th,5th,6th,7th,8th,9th,10th,,
,first,second,third,fourth,fifth,sixth,seventh,eighth,ninth,tenth, and )
then str = reReplaceNoCase(str, ^The[[:space:]], )
then str = reReplace(str, [^[:alnum:][:space:]], , all)
_
Personally I don't think this is possible with regexs, but I'd love to be
corrected. It would need to be able to look for an even number of quotes
followed by a greater than sign.
This would also allow the valid statement cfset test=part 2 part 1 to
be distinguished from the invalid statement
Personally I don't think this is possible with regexs, but I'd love
to be corrected. It would need to be able to look for an even
number of quotes followed by a greater than sign.
What I'm going to try now is to modify the regexp to distinguish between
string data (anything enclosed in
8 matches
Mail list logo