If it's always going to be a three character string, use the mid string
function

<cfif Mid(theString, 2, 1) IS "0">


-----Original Message-----
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 11:43 AM
To: CF-Talk
Subject: A little RegEx help . . .


I need to look and see if the second character of a three character string
is a "0" (zero).  How would I do that?

<CFIF (insert regex here)> do something </CFIF>    8-)

Thanks,
Dave



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to