The regexp you used will not work as intended in CF !!!!!
> -----Original Message-----
> From: Alistair Davidson [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 25 juni 2004 11:35
> To: CF-Talk
> Subject: RE: Coldfusion & Regex
>
> <!--- in Application.cfm --->
> <cfscript>
>
> function isValid( strInput ){
>
> // NOTE: the hash character must be escaped
> // to prevent the CF engine thinking it's the start
> // of a variable name
> var reRegEx = "/(\%27)|(\')|(\-\-)|(\%23)|(##)/ix";
>
> if( REFindNoCase( reRegEx, arguments.strInput ) GT 0 ){
> return false;
> } else {
> return true;
> }
> }
>
> </cfscript>
>
> ...
> <!--- in your processing code --->
> <cfif isValid( form.whatever )>
> <!--- ....do stuff --->
> <cfelse>
> <!--- ....don't do stuff ---> </cfif>
>
>
> Hope that helps
>
> Alistair
>
> Alistair Davidson
> Senior Technical Developer
> Headshift.com
> ------------------------------------------
> HEADSHIFT >> www.headshift.com
> T: 020 7357 7358
> ------------------------------------------
> smarter > simpler > social >
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Coldfusion & Regex Ian Vaughan
- RE: Coldfusion & Regex Taco Fleur
- RE: Coldfusion & Regex Alistair Davidson
- RE: Coldfusion & Regex Alistair Davidson
- RE: Coldfusion & Regex Pascal Peters
- RE: Coldfusion & Regex Pascal Peters
- RE: Coldfusion & Regex Ian Vaughan
- RE: Coldfusion & Regex Pascal Peters