Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...email validation for registering domains (and CAPS)email validation for registering domains (and CAPS)
Previous
 
Next
New Post
11/16/2007 5:23 PM
 

as per the subject, i have the following regex to limit registering eddress domains:

^\w+@(abc.com|nbc.com|anyotherdomain.com)$

The regex works perfectly fine, and in testing the straight regex, both drew@abc.com and drew@ABC.com will match, but when the regex is added to DNN's User Settings page for Email Address Validation, the latter will fail. I have some pie on my face for this one and wondered if somebody can show me the folly in my effort. cheers, drew..

 
New Post
11/17/2007 8:42 AM
 

which DNN version are you using? AFAIR there was an issue with validation fixed in DNN 4.7.0


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/17/2007 3:37 PM
 

this error occurs on 4.5.3. Perhaps i will comb thru Gemini to see if i can find that fix, rather than upgrading the whole site. Does anyone have any quick pointer to the issue? thanks kindly in advance..  and ps: i will test this on my new 4.7 install in a moment..   drew..

 
New Post
11/17/2007 3:41 PM
 

No luck with 4.7, this still fails. Perhaps i need to go back to regex school and find an explicit case-insensitive setting for the grouping. There is no way i am willing to start entering all possible combinations of upper and lower letters!   drew..

 
New Post
11/20/2007 10:53 PM
 

i don't mind being wrong, and i realized the online tester i was using was set to be globally case-insensitive.. crap.. so to complete this thread, dnn works fine, and i need to study up on regex: With the help of Expresso, i mangled together:

^[a-zA-Z0-9._%\-+']+@(?i)(domain\.com|domain1\.com|domain4\.com|domain99\.org)$

which seems to do exactly what i need. To recap for those not too familar with regex:

  • ^  marks the start of the email
  • [a-zA-Z0-9._%\-+']+    accepts 1 or more of the characters in the square brackets for the left-hand part of the eddress
  • @   the universal eddress delimiter
  • (?i)    sets the following grouped set of alternative options to be case-insenstive  (this was the crucial piece)
  • (domain\.com|domain1\.com|domain4\.com|domain99\.org)   is the list of acceptable domains, and with each period being escaped (preceded by the backslash, regex accepts only that char, which is significantly different than just a period, which forces regex to accept one char of any type.
  • $ marks the end of the regex effort.

Hope this helps someone.. drew..

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...email validation for registering domains (and CAPS)email validation for registering domains (and CAPS)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out