Categories

ep.validate.email()

Categories: Utilities

ep.validate.email( value, [ options ] )

Plugin: ep.validate

Description: Validate a email address.

  • ep.validate.email( value, [ options ] )

    version added: 6.11.0

    value   A text to validate

    options   A map of additional options pass to the method.

The ep.validate.email() method checks if the givn string an valid email address.

  • Validate an email address.

    Code:
    ep.validate.email( 'mmustermann@epages.com' );
    
    Results:
    true
    
    
  • Validate an email address with error return.

    Code:
    ep.validate.email( 'mmustermann@epages' );
    
    Results:
    NO_EMAIL
    
    
  • required

    version added: 6.11.0

    A boolean indication wether the value is required.

    Default: false

  • minlength

    version added: 6.11.0

    A minimum number of chars.

  • maxlength

    version added: 6.11.0

    A maximum number of chars.