John,

Try this:

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

To search for a space, just enter a space in the class containers.

Dain Anderson
Caretaker, CF Comet
http://www.cfcomet.com/



----- Original Message -----
From: "John Barleycorn" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 12:56 PM
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