code: function filter_email(value) {
      var m = EMAIL_RE.exec(value);
      if(m == null) throw OptError('Excpeted an email address.');
      return m[1];
  }
docs: Switch argument filter that expects an email address. An exception is throwed if the criteria doesn`t match.