|
Does it happen consistently for a particular email
address?
Is that email address 46 characters
long?
One stab in the dark is the RE is looking for
characters at an index position (51), which is beyond the length of the
string (46) for some weird reason.
More information about what you have tested so far
would be of assistance.
Aaron
----- Original Message -----
From: Taco Fleur
Sent: Saturday, June 19, 2004 8:10 PM
Subject: [cfaussie] RE: index 51 size 46 error with calling
function I
thought maybe the error means something to someone out there. But here's the
code...
I
would have posted it if the error occurred on every request, but since it only
occurs when the string in changes.????
Just a
basic email validation!!! ;-)
<cffunction access="public" name="fnIsValidEmail"
output="false" returntype="boolean">
<cfargument name="emailToValidate" type="string" required="false"> <cfset isValid = yesNoFormat(reFindNoCase("[EMAIL PROTECTED](\.[a-z]+){1,2}$", arguments.emailToValidate))> <cfreturn isValid> </cffunction> Taco
Fleur
Tell me and I will forget Show me and I will remember Teach me and I will learn --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ |
Title: Message
- [cfaussie] RE: index 51 size 46 error with calling functi... Stephen Milligan
- [cfaussie] RE: index 51 size 46 error with calling f... Taco Fleur
- [cfaussie] RE: index 51 size 46 error with calling f... Aaron DC
- [cfaussie] RE: index 51 size 46 error with calling f... Taco Fleur
- [cfaussie] RE: index 51 size 46 error with calling f... adam
- [cfaussie] RE: index 51 size 46 error with calling f... Taco Fleur
- [cfaussie] RE: index 51 size 46 error with calling f... Sean Corfield
- [cfaussie] RE: index 51 size 46 error with calling f... adam
- [cfaussie] RE: index 51 size 46 error with calling f... Sean Corfield
