close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

One letter domain not verifying

Thread began 6/04/2009 9:16 pm by bjgarner241692 | Last modified 6/08/2009 8:54 am by bjgarner241692 | 2528 views | 5 replies


One letter domain not verifying

Recently a customer pointed out to me that one of their clients could not make an order on their site because it said it was an invalid email address.

The restriction was set with Validation Toolkit, which creates a Regular Expression that is obviously pattern matching and is set to recognize only 2 letter or longer domains. That would be fine if nobody had a one letter domain. ... but they do.

The response I got from Tech Support was

If you want to remove the Email restriction, you can remove each client validation by clicking on the Behaviors panel (Windows->Behaviors), and then select the form. You can then remove the email restriction.

As far as changing the code to allow for a single letter domain, it is not an easy fix, and it would require changing the regular expression.

Not terribly helpful. Actually, I did know how to remove the behaviour, having put it there myself by clicking the little + sign, I guessed what the little minus sign was for.

It has now been more than 48 hours since I requested that they send me the revised Regular Expression and I have received no response at all.

No revised expression, no indication as to whether the bug will be fixed in the extension. Nothing.

If anyone knows how to read and edit regular expressions I would be ever so grateful for some help.

I'm guessing that the offending bit of code is in here:

for (x=0; x < domArr.length; x++) {
if (domArr[x].search(acceptedPat) == -1 || domArr[x].length == 0 || (domArr[x].length < 2 && x >= domArr.length-2)) {
isValid = false;
if (domArr[domArr.length-1].length !=2 && domArr[domArr.length-1].search(knownDomsPat) == -1) {
isValid = false;
if (domArr.length < 2) {
isValid = false;

... but I really don't have a clue.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...