Stephen,
Read Tom Jordahl's comment on Ben's blog (
http://www.bennadel.com/index.cfm?dax=blog:265.view ). Might provide you
some insight here.
~Todd
On Dec 6, 2007 3:23 PM, Stephen Cassady <[EMAIL PROTECTED]> wrote:
> OK -
> The question is - why does the following fail:
> isValid("email","name&[EMAIL PROTECTED]")
>
> If the answer you supplied was "because an email with & in it is invalid"
> then your answer is likely wrong. If you answered that isValid incorrectly
> returns a failure response, your likely correct.
>
> But that doesn't answer the question I'm trying to ask (and not well) - I
> have a user with an email like " name&[EMAIL PROTECTED]" - and I use isValid
> and other Regex expressions to filter, all which find the & sign invalid.
>
> Is there a way to modify the isValid response to allow for the & sign (and
> others, like + signs)?
> Do I have to scrap all my uses of isValid and replace with a different
> process?
>
> References:
>
> http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-addres
> s-until-i.aspx
> http://www.bennadel.com/index.cfm?dax=blog:265.view
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294347
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4