RE: More RegEx Help
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
Re: More RegEx Help
Don't you want something like this? cfif REFindNoCase(([[:Alpha:]]|[[:Punct:]]), myString) bad chars found /cfif (|) does alternation (like or) Jamie On Fri, 27 Jul 2001 16:56:22 +, in cf-talk you wrote: 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
Re: More RegEx Help
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