anchor.diff:              ([A-Za-z0-9\\-])+\\.
           )+
           [A-Za-z\\-]{2,}
  -    )$".
  +    )".
   
   %% Rusty's regexp: "([^@\"\'\\s]+)@(([-a-z0-9]+\\.)+[a-z]{2,})".
   %% Complete regexp:
  
positive.code: 
  -module(validator_base_email).
  -include("zotonic.hrl").
  -export([render_validator/5, validate/5]).
  
  render_validator(email, TriggerId, _TargetId, Args, Context)  ->
  	JsObject = z_utils:js_object(z_validation:rename_args(Args)), 
  
negative.code:     case z_string:trim(Value) of
          [] -> {{ok, []}, Context};
          Trimmed ->
              case re:run(Trimmed, [$^|re()]++"$", [extended]) of
                  nomatch   -> {{error, Id, invalid}, Context};
                  {match,_} -> {{ok, Trimmed}, Context}
              end
  