Re: Help with Regular expression

2008-04-01 Thread Charlie Griefer
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 /

Re: Help with Regular expression

2008-04-01 Thread Kris Jones
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

RE: Help with Regular expression

2008-04-01 Thread Andy Matthews
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

RE: Help with Regular expression

2008-04-01 Thread Dave Francis
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

RE: Help with Regular expression

2004-05-20 Thread Thanh Nguyen
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,

RE: Help with Regular expression

2004-05-19 Thread Matthew Walker
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) _

Re: Help with regular expression

2001-11-12 Thread David Cummins
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

Re: Help with regular expression

2001-11-12 Thread Seth Petry-Johnson
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