hi,
i got a problem with my code i am using for email validation. its not exactly standard email validation, as i need to match incomming email addresses so they are the same as any of the following email formats or a mixture of them:
"a.kurt@soton.ac.uk" or "a.kurt@soton.com"
"a dot kurt at soton dot ac dot uk" or
"a dot kurt at soton dot com"
this is what ive got so far:
$email=~ /(((\w{1,}?)(\.| dot )){1,}[\@| at ]((\w{1,}?)(\.| dot )){1,}[a-zA-Z]{2,4})/
i'm having problems after the @/at of the email address as the code only accepts the "ac.uk" format and not the ".com" format.
i got a problem with my code i am using for email validation. its not exactly standard email validation, as i need to match incomming email addresses so they are the same as any of the following email formats or a mixture of them:
"a.kurt@soton.ac.uk" or "a.kurt@soton.com"
"a dot kurt at soton dot ac dot uk" or
"a dot kurt at soton dot com"
this is what ive got so far:
$email=~ /(((\w{1,}?)(\.| dot )){1,}[\@| at ]((\w{1,}?)(\.| dot )){1,}[a-zA-Z]{2,4})/
i'm having problems after the @/at of the email address as the code only accepts the "ac.uk" format and not the ".com" format.