Title: Message
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
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Milligan
Sent: Saturday, 19 June 2004 7:33 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: index 51 size 46 error with calling function

Yeah,
 
I think the problem is with the curly bracket you've got at line 6 column 4 of your function.
 
Not completely sure though, so maybe you could post the code in question.
 
Only kidding.
 
It's kinda hard to give an answer to this without seeing the code though. It's certainly not an error I'm familiar with.
 
Spike
 

--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur
Sent: Friday, June 18, 2004 11:47 PM
To: CFAussie Mailing List
Subject: [cfaussie] index 51 size 46 error with calling function

I have a cffunction that validates an email (simple) every time I change the string (arguments value) I get a "Index: 51, Size: 46" error, google returned me no results, anyone any idea on this?
 
Thanks
 
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/
---
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/

Reply via email to