You don't really need a regexp for this:
Either the GetToken function or ListGetAt will do
<cfset dateString="8/18/2001">
<cfset month=GetToken(dateString,1,"/")>
<cfset year=ListGetAt(dateString,3,"/")>
<cfoutput>month=#month# year=#year#</cfoutput>
--- John Barleycorn <[EMAIL PROTECTED]> wrote:
> Gang, given the date 8/8/2001, how would i use a
> regular expression to set
> the variables for month, day, and year. I know what
> i need to do, but i'm
> just not sure how to do it with a Reg Exp
=====
I-Lin Kuo
Macromedia CF5 Advanced Developer
Sun Certified Java 2 Programmer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists