Regular expressions can be very confusing... that's why I don't use them :)

If you just want to find a space then use FIND() like this

foo = find(string," ");

if( find(string," ") )
        do whatever

                                                    
Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]
                                                    


-----Original Message-----
From: John Barleycorn [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 9:56 AM
To: CF-Talk
Subject: More RegEx Help


I seem to be having a problem searching for a space using RegEx. This is 
what i'm using:

<cfif REFindNoCase("[[:Alpha:][:Punct:][ ]]", myString)>
    bad chars found
</cfif>

but it doesn't find any of the chars i'm looking for if i include "[ ]". If 
i remove that part, it finds what i'm looking for. Does anyone know why this

doesn't work? Thanks for the help.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to