PageRenderTime 407ms queryTime 56ms sortTime 10ms getByIdsTime 117ms findMatchingLines 142ms

100+ results results for 'email address regex' (407 ms)

Not the results you expected?
jquery.validationEngine-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 179 lines
                    
35                "maxSize": {
                    
36                    "regex": "none",
                    
37                    "alertText": "* Maximum ",
                    
40				"groupRequired": {
                    
41                    "regex": "none",
                    
42                    "alertText": "* You must fill one of the following fields"
                    
74                "creditCard": {
                    
75                    "regex": "none",
                    
76                    "alertText": "* Invalid credit card number"
                    
83                "email": {
                    
84                    // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#    e-mail-state-%28type=email%29 )
                    
85                    "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
                    
85                    "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
                    
86                    "alertText": "* Invalid email address"
                    
87                },
                    
                
vi_VN.js https://gitlab.com/darmah250903/agung | JavaScript | 378 lines
                    
50        },
                    
51        emailAddress: {
                    
52            default: 'Vui lòng nhập địa chỉ email hợp lệ',
                    
262        },
                    
263        regexp: {
                    
264            default: 'Vui lòng nhập giá trị thích hợp với biểu mẫu',
                    
                
container2.html https://gitlab.com/x33n/formvalidation | HTML | 168 lines
                    
41                        <div class="form-group">
                    
42                            <label class="col-lg-3 control-label">Email address</label>
                    
43                            <div class="col-lg-5">
                    
43                            <div class="col-lg-5">
                    
44                                <input type="text" class="form-control" name="email" />
                    
45                            </div>
                    
131                    },
                    
132                    regexp: {
                    
133                        regexp: /^[a-zA-Z0-9_\.]+$/,
                    
137            },
                    
138            email: {
                    
139                validators: {
                    
139                validators: {
                    
140                    emailAddress: {
                    
141                        message: 'The input is not a valid email address'
                    
                
horizontalForm.html https://gitlab.com/x33n/formvalidation | HTML | 187 lines
                    
49                    <label>Email address</label>
                    
50                    <input name="email" type="text" placeholder="Email address" />
                    
51                </div>
                    
129                    },
                    
130                    regexp: {
                    
131                        regexp: /^[a-zA-Z0-9_\.]+$/,
                    
135            },
                    
136            email: {
                    
137                validators: {
                    
138                    notEmpty: {
                    
139                        message: 'The email address is required'
                    
140                    },
                    
140                    },
                    
141                    emailAddress: {
                    
142                        message: 'The input is not a valid email address'
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/dp | PHP | 143 lines
                    
45						if ((!empty ($paypal["txn_type"]) && preg_match ("/^web_accept$/i", $paypal["txn_type"]))
                    
46						&& (!empty ($paypal["item_number"]) && preg_match ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["sp_access_item_number_regex"], $paypal["item_number"]))
                    
47						&& (empty ($paypal["payment_status"]) || empty ($payment_status_issues) || !preg_match ($payment_status_issues, $paypal["payment_status"]))
                    
59
                    
60										$paypal["ip"] = (preg_match ("/ip address/i", $paypal["option_name2"]) && $paypal["option_selection2"]) ? $paypal["option_selection2"] : "";
                    
61										$paypal["ip"] = (!$paypal["ip"] && preg_match ("/^[a-z0-9]+~[0-9\.]+$/i", $paypal["invoice"])) ? preg_replace ("/^[a-z0-9]+~/i", "", $paypal["invoice"]) : $paypal["ip"];
                    
77																	if (($code = preg_replace ("/%%full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (trim ($paypal["first_name"] . " " . $paypal["last_name"])), $code)))
                    
78																		if (($code = preg_replace ("/%%payer_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($paypal["payer_email"]), $code)))
                    
79																			if (($code = preg_replace ("/%%user_ip%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($paypal["ip"]), $code)))
                    
                
mailto.rb https://gitlab.com/MichelZuniga/ruby | Ruby | 286 lines
                    
17  class MailTo < Generic
                    
18    include REGEXP
                    
19
                    
52    HEADER_REGEXP  = /\A(?<hfield>(?:%\h\h|[!$'-.0-;@-Z_a-z~])*=(?:%\h\h|[!$'-.0-;@-Z_a-z~])*)(?:&\g<hfield>)*\z/
                    
53    # practical regexp for email address
                    
54    # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address
                    
54    # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address
                    
55    EMAIL_REGEXP = /\A[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/
                    
56    # :startdoc:
                    
68    # The headers can be supplied as a pre-encoded string, such as
                    
69    # "subject=subscribe&cc=address", or as an Array of Arrays like
                    
70    # [['subject', 'subscribe'], ['cc', 'address']]
                    
175        addr.gsub!(/%\h\h/, URI::TBLDECWWWCOMP_)
                    
176        if EMAIL_REGEXP !~ addr
                    
177          raise InvalidComponentError,
                    
                
string.js https://gitlab.com/thomasphillips3/beerlocker | JavaScript | 506 lines
                    
124 *     var M = db.model('M', s);
                    
125 *     var m = new M({ email: 'SomeEmail@example.COM' });
                    
126 *     console.log(m.email) // someemail@example.com
                    
205 *     var schema = new Schema({ postalCode: { type: String, minlength: 5 })
                    
206 *     var Address = db.model('Address', schema)
                    
207 *     var address = new Address({ postalCode: '9512' })
                    
259 *     var schema = new Schema({ postalCode: { type: String, maxlength: 9 })
                    
260 *     var Address = db.model('Address', schema)
                    
261 *     var address = new Address({ postalCode: '9512512345' })
                    
338 *
                    
339 * @param {RegExp} regExp regular expression to test against
                    
340 * @param {String} [message] optional custom error message
                    
365    type: 'regexp',
                    
366    regexp: regExp
                    
367  });
                    
                
sq_AL.js https://gitlab.com/sawmainek/528Express-Server | JavaScript | 370 lines
                    
49        },
                    
50        emailAddress: {
                    
51            'default': 'Ju lutem vendosni një adresë email të vlefshme'
                    
256        },
                    
257        regexp: {
                    
258            'default': 'Ju lutem vendosni një vlerë që përputhet me modelin'
                    
                
ciabot.pl https://gitlab.com/envieidoc/Openswan | Perl | 288 lines
                    
17# This program is designed to run as the .git/commit-post-hook script. It takes
                    
18# the commit information, massaging it and mailing it to the address given below.
                    
19#
                    
43use strict;
                    
44use vars qw ($project $from_email $dest_email $noisy $rpc_uri $sendmail
                    
45		$xml_rpc $ignore_regexp $alt_local_message_target);
                    
54
                    
55# The from address in generated mails.
                    
56$from_email = 'nightly@xelerance.com';
                    
57
                    
58# Mail all reports to this address.
                    
59$dest_email = 'nightly@lists.openswan.org';
                    
83#
                    
84# This variable should contain regexp, against which will each object be
                    
85# checked, and if the regexp is matched, the file is ignored. Therefore ie.  to
                    
                
common.py https://github.com/enlaces/curso_python_dga_11.git | Python | 157 lines
                    
42        if 'HTTP_USER_AGENT' in request.META:
                    
43            for user_agent_regex in settings.DISALLOWED_USER_AGENTS:
                    
44                if user_agent_regex.search(request.META['HTTP_USER_AGENT']):
                    
92    def process_response(self, request, response):
                    
93        "Send broken link emails and calculate the Etag, if needed."
                    
94        if response.status_code == 404:
                    
94        if response.status_code == 404:
                    
95            if settings.SEND_BROKEN_LINK_EMAILS:
                    
96                # If the referrer was from an internal link or a non-search-engine site,
                    
105                    mail_managers("Broken %slink on %s" % ((is_internal and 'INTERNAL ' or ''), domain),
                    
106                        "Referrer: %s\nRequested URL: %s\nUser agent: %s\nIP address: %s\n" \
                    
107                                  % (referer, request.get_full_path(), ua, ip))
                    
                
mode-dot.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 361 lines
                    
51            token : "comment.doc.tag",
                    
52            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
53        }, {
                    
54            token : "comment.doc.tag",
                    
55            regex : "\\bTODO\\b"
                    
56        }, {
                    
66        token : "comment.doc", // doc comment
                    
67        regex : "\\/\\*(?=\\*)",
                    
68        next  : start
                    
74        token : "comment.doc", // closing comment
                    
75        regex : "\\*\\/",
                    
76        next  : start
                    
106                token : "comment",
                    
107                regex : /\/\/.*$/
                    
108            }, {
                    
                
en_US.js https://gitlab.com/Mirros/cdnjs | JavaScript | 370 lines
                    
49        },
                    
50        emailAddress: {
                    
51            'default': 'Please enter a valid email address'
                    
201        ip: {
                    
202            'default': 'Please enter a valid IP address',
                    
203            ipv4: 'Please enter a valid IPv4 address',
                    
203            ipv4: 'Please enter a valid IPv4 address',
                    
204            ipv6: 'Please enter a valid IPv6 address'
                    
205        },
                    
222        mac: {
                    
223            'default': 'Please enter a valid MAC address'
                    
224        },
                    
256        },
                    
257        regexp: {
                    
258            'default': 'Please enter a value matching the pattern'
                    
                
jquery.validationEngine-ja.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 149 lines
                    
31				"groupRequired": {
                    
32                    "regex": "none",
                    
33                    "alertText": "* You must fill one of the following fields"
                    
35                "maxSize": {
                    
36                    "regex": "none",
                    
37                    "alertText": "* ",
                    
73                "creditCard": {
                    
74                    "regex": "none",
                    
75                    "alertText": "* 無効なクレジットカード番号"
                    
82                "email": {
                    
83                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
84                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
108                "onlyNumberSp": {
                    
109                    "regex": /^[0-9\ ]+$/,
                    
110                    "alertText": "* 半角数字で入力してください"
                    
                
validation.php https://gitlab.com/laher01/factu40 | PHP | 290 lines
                    
39	'distinct'       => 'El campo :attribute contiene un valor duplicado.',
                    
40	'email'          => ':attribute no es un correo válido',
                    
41	'exists'         => ':attribute es inválido.',
                    
68	'present'              => 'El campo :attribute debe estar presente.',
                    
69	'regex'                => 'El formato de :attribute es inválido.',
                    
70	'required'             => 'El campo :attribute es obligatorio.',
                    
104		],
                    
105		'email' => [
                    
106			'unique' => 'El :attribute ya ha sido registrado.',
                    
115	| The following language lines are used to swap attribute place-holders
                    
116	| with something more reader friendly such as E-Mail Address instead
                    
117	| of "email". This simply helps us make messages a little cleaner.
                    
123		'username'                  => 'usuario',
                    
124		'email'                     => 'correo electrónico',
                    
125		'first_name'                => 'nombre',
                    
                
jquery.validationEngine-es.js https://gitlab.com/zohaibsaleem/shipcliq | JavaScript | 131 lines
                    
19				"groupRequired": {
                    
20                    "regex": "none",
                    
21                    "alertText": "* You must fill one of the following fields"
                    
23                "maxSize": {
                    
24                    "regex": "none",
                    
25                    "alertText": "* Máximo de ",
                    
57                "creditCard": {
                    
58                    "regex": "none",
                    
59                    "alertText": "* No válido de tarjeta de crédito"
                    
66                "email": {
                    
67                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
68                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
92                "onlyNumberSp": {
                    
93                    "regex": /^[0-9\ ]+$/,
                    
94                    "alertText": "* Sólo números"
                    
                
form-validation.js https://gitlab.com/kaouech/theme | JavaScript | 290 lines
                    
36                    notEmpty: {
                    
37                        message: 'The email address is required and can\'t be empty'
                    
38                    },
                    
38                    },
                    
39                    emailAddress: {
                    
40                        message: 'The input is not a valid email address'
                    
121                    notEmpty: {
                    
122                        message: 'The email address is required and can\'t be empty'
                    
123                    },
                    
168                    notEmpty: {
                    
169                        message: 'The email address is required and can\'t be empty'
                    
170                    },
                    
171                    emailAddress: {
                    
172                        message: 'The input is not a valid email address'
                    
173                    }
                    
                
mailto.rb https://gitlab.com/leduc1984/ruby | Ruby | 286 lines
                    
17  class MailTo < Generic
                    
18    include REGEXP
                    
19
                    
52    HEADER_REGEXP  = /\A(?<hfield>(?:%\h\h|[!$'-.0-;@-Z_a-z~])*=(?:%\h\h|[!$'-.0-;@-Z_a-z~])*)(?:&\g<hfield>)*\z/
                    
53    # practical regexp for email address
                    
54    # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address
                    
54    # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address
                    
55    EMAIL_REGEXP = /\A[a-zA-Z0-9.!\#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/
                    
56    # :startdoc:
                    
68    # The headers can be supplied as a pre-encoded string, such as
                    
69    # "subject=subscribe&cc=address", or as an Array of Arrays like
                    
70    # [['subject', 'subscribe'], ['cc', 'address']]
                    
175        addr.gsub!(/%\h\h/, URI::TBLDECWWWCOMP_)
                    
176        if EMAIL_REGEXP !~ addr
                    
177          raise InvalidComponentError,
                    
                
devise.rb https://github.com/kaethorn/ptime.git | Ruby | 211 lines
                    
4  # ==> Mailer Configuration
                    
5  # Configure the e-mail address which will be shown in Devise::Mailer,
                    
6  # note that it will be overwritten if you use your own mailer class with default "from" parameter.
                    
19  # Configure which keys are used when authenticating a user. The default is
                    
20  # just :email. You can configure it to use [:username, :subdomain], so for
                    
21  # authenticating a user, both parameters are required. Remember that those
                    
107
                    
108  # Email regex used to validate email formats. It simply asserts that
                    
109  # an one (and only one) @ exists in the given string. This is mainly
                    
110  # to give user feedback and not to assert the e-mail validity.
                    
111  # config.email_regexp = /\A[^@]+@[^@]+\z/
                    
112
                    
127  # Defines which strategy will be used to unlock an account.
                    
128  # :email = Sends an unlock link to the user email
                    
129  # :time  = Re-enables login after a certain amount of time (see :unlock_in below)
                    
                
diffcommit.py https://github.com/pombredanne/reviewboard.git | Python | 393 lines
                    
41    uri_object_key = 'commit_id'
                    
42    uri_object_key_regex = r'[A-Za-z0-9]{1,%s}' % COMMIT_ID_LENGTH
                    
43
                    
65        },
                    
66        'author_email': {
                    
67            'type': StringFieldType,
                    
67            'type': StringFieldType,
                    
68            'description': 'The e-mail address of the author of this commit.',
                    
69        },
                    
83        },
                    
84        'committer_email': {
                    
85            'type': StringFieldType,
                    
85            'type': StringFieldType,
                    
86            'description': 'The e-mail address of the committer of this '
                    
87                           'commit.',
                    
                
jquery.validationEngine-fr.js https://gitlab.com/adwait.rise/guruautolines | JavaScript | 129 lines
                    
28                "maxSize": {
                    
29                    "regex": "none",
                    
30                    "alertText": "* Maximum ",
                    
33		        "min": {
                    
34                    "regex": "none",
                    
35                    "alertText": "* Valeur minimum requise "
                    
67                    // credit: jquery.h5validate.js / orefalo
                    
68                    "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
                    
69                    "alertText": "* Numéro de téléphone invalide"
                    
71                "email": {
                    
72                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
73                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
97                "onlyNumberSp": {
                    
98                    "regex": /^[0-9\ ]+$/,
                    
99                    "alertText": "* Seuls les chiffres sont acceptés"
                    
                
tr_TR.js https://gitlab.com/augustocbx/grimes | JavaScript | 385 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Lütfen geçerli bir E-Mail adresi giriniz'
                    
268            },
                    
269            regexp: {
                    
270                'default': 'Lütfen uyumlu bir değer giriniz'
                    
                
type.js https://gitlab.com/josephm9/304CEM-CW | JavaScript | 311 lines
                    
137 * @property {boolean} TagInfo.optional - Indicates whether the member is optional.
                    
138 * @property {string} TagInfo.text - Descriptive text for the member (for example, `The user's email
                    
139 * address.`).
                    
160    if ( /^(\[)?\s*(.+?)\s*(\])?$/.test(tagInfo.name) ) {
                    
161        tagInfo.name = RegExp.$2;
                    
162        // were the "optional" brackets present?
                    
162        // were the "optional" brackets present?
                    
163        if (RegExp.$1 && RegExp.$3) {
                    
164            tagInfo.optional = true;
                    
168        if ( /^(.+?)\s*=\s*(.+)$/.test(tagInfo.name) ) {
                    
169            tagInfo.name = RegExp.$1;
                    
170            tagInfo.defaultvalue = jsdoc.util.cast.cast(RegExp.$2);
                    
                
miq_provision_redhat_dialogs_clone_to_template.yaml https://gitlab.com/unofficial-mirrors/manageiq | YAML | 332 lines
                    
42          :data_type: :string
                    
43        :owner_address:
                    
44          :description: Address
                    
75            :method: :retrieve_ldap
                    
76          :description: Look Up LDAP Email
                    
77          :required: false
                    
99          :data_type: :string
                    
100        :owner_email:
                    
101          :description: E-Mail
                    
102          :required_method: :validate_regex
                    
103          :required_regex: !ruby/regexp /\A[\w!#$\%&'*+\/=?`\{|\}~^-]+(?:\.[\w!#$\%&'*+\/=?`\{|\}~^-]+)*@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}\Z/i
                    
104          :required: true
                    
                
jquery.validationEngine-et.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 139 lines
                    
30                "minSize": {
                    
31                    "regex": "none",
                    
32                    "alertText": "* Minimaalselt ",
                    
35                "maxSize": {
                    
36                    "regex": "none",
                    
37                    "alertText": "* Maksimaalselt ",
                    
74                "creditCard": {
                    
75                    "regex": "none",
                    
76                    "alertText": "* Kehtetu krediitkaardi number"
                    
79                    // credit: jquery.h5validate.js / orefalo
                    
80                    "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/,
                    
81                    "alertText": "* Vigane telefoni number"
                    
83                "email": {
                    
84                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
85                    "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
                    
                
jquery.validationEngine-pl.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 130 lines
                    
7                "required": { // Add your regex rules here, you can take telephone as an example
                    
8                    "regex": "none",
                    
9                    "alertText": "* Pole wymagane",
                    
23				"groupRequired": {
                    
24                    "regex": "none",
                    
25                    "alertText": "* You must fill one of the following fields"
                    
27                "min": {
                    
28                    "regex": "none",
                    
29                    "alertText": "* Najmniejsza wartość to "
                    
57                    // credit: jquery.h5validate.js / orefalo
                    
58                    "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
                    
59                    "alertText": "* Nieprawidłowy numer telefonu"
                    
61                "email": {
                    
62                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
63                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
                
filter.pas https://github.com/dtouzeau/artica-1.5.git | Pascal | 487 lines
                    
104        if RegExpr.Exec(Table[i]) then begin
                    
105        if LowerCase(RegExpr.Match[1])='client_address'  then infos.client_address:=RegExpr.Match[2];
                    
106        if LowerCase(RegExpr.Match[1])='client_name'  then infos.client_name:=RegExpr.Match[2];
                    
202  
                    
203  if length(trim(email.ldap_ou))=0 then email.ldap_ou:=ldap.OU_From_eMail(Email.recipient);
                    
204  if length(trim(email.ldap_ou))=0 then begin
                    
297     D:=COMMANDLINE_PARAMETERS('debug');
                    
298     Email.ldap_uid:=ldap.EmailFromAliase(Email.recipient);
                    
299     if D then writeln('BlackList:: uid=' + Email.ldap_uid);
                    
342
                    
343          if LDAP.IsBlackListed(Email.sender,Email.recipient) then begin
                    
344             LOGS.Logs('artica-send:: BlackList::' + email.recipient+ ' as black listed '+Email.sender);
                    
361          sql:='INSERT INTO messages (MessageID,mail_from,mailfrom_domain,mail_to,subject,zDate,received_date,SpamRate,message_path,filter_action,ou,MailSize,SpamInfos,quarantine) ';
                    
362    sql:=sql + 'VALUES("'+ email.md+'","' + email.sender+'","' + email.senderdomain+'","' + email.recipient +'","'+Subject+'",';
                    
363    sql:=sql + 'DATE_FORMAT(NOW(),''%Y-%m-%d %H:%I:%S''),DATE_FORMAT(NOW(),''%Y-%m-%d %H:%I:%S''),"0","'+email.md+'","' +email.Filter_result+'","' +email.ldap_ou+'","' + email.size + '","NONE","0")';
                    
                
tr_TR.js https://gitlab.com/israt12/AtomicProject_IsratJerin_146574_CRUD_Create_Read_update_delete | JavaScript | 353 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': 'Lütfen geçerli bir E-Mail adresi giriniz'
                    
247        },
                    
248        regexp: {
                    
249            'default': 'Lütfen uyumlu bir değer giriniz'
                    
                
Regex.hs https://gitlab.com/LukaHorvat/evo | Haskell | 343 lines
                    
134randomSubtree :: MonadRandom m => RegEx -> m (RegEx, RegEx -> RegEx)
                    
135randomSubtree regex = withWeight regex (weighRegex regex)
                    
136    where withWeight Failed        _ = return (Failed, identity)
                    
177-- | A random leaf subexpression
                    
178randomLeaf :: MonadRandom m => RegEx -> m (RegEx, RegEx -> RegEx)
                    
179randomLeaf regex = do
                    
214
                    
215crossRegex :: MonadRandom m => RegEx -> RegEx -> m RegEx
                    
216crossRegex a b = do
                    
221validEmails :: [String]
                    
222validEmails = ["email@example.com", "firstname.lastname@example.com", "email@subdomain.example.com", "firstname+lastname@example.com", "email@123.123.123.123", "email@[123.123.123.123]", "“email”@example.com", "1234567890@example.com", "email@example-one.com", "_______@example.com", "email@example.name", "email@example.museum", "email@example.co.jp", "firstname-lastname@example.com"]
                    
223
                    
224invalidEmails :: [String]
                    
225invalidEmails = ["plainaddress", "#@%^%#$@#$@#.com", "@example.com", "Joe Smith <email@example.com>", "email.example.com", "email@example@example.com", ".email@example.com", "email.@example.com", "email..email@example.com", "あいうえお@example.com", "email@example.com (Joe Smith)", "email@example", "email@-example.com", "email@example.web", "email@111.222.333.44444", "email@example..com", "Abc..123@example.com"]
                    
226
                    
                
Language_nb.properties https://github.com/BrettSwaim/liferay-portal.git | Properties File | 37 lines
                    
1authentication-search-filter-help=Angi søkefilteret som brukes til å teste gyldigheten av en bruker. Tokenene @company_id @, @email_address @, @screen_name @, og @user_id @ erstattes under kjøring med riktige verdier. (Automatic Translation)
                    
2autogenerate-user-password=Autogenerer brukerpassord (Automatic Translation)
                    
28password-encryption-algorithm-help=Angi passord krypteringen å bruke for å sammenligne passord under import og bruke for å kryptere passord under eksport. Sammenligne passord under import vil bare brukes når egenskapen "LDAPAuthConfiguration.method" er satt til passord-Sammenlign. Hvis kryptering er satt til ingen, som er standardverdien, blir passord betraktet som ren tekst. Algoritmen SHA-512 støttes ikke for øyeblikket. (Automatic Translation)
                    
29password-policy-enabled-help=Sett denne til True bruk LDAP Passordpolicy i stedet for portalen Passordpolicy. Hvis satt til sann, er det mulig at portalen genererte passord ikke vil samsvarer med policyen LDAP. Se "passwords.regexptoolkit.*" egenskapene for detaljer om hvordan du konfigurerer RegExpToolkit i generere disse passordene. (Automatic Translation)
                    
30range-size-help=Angi antall verdier som skal returneres i hver spørring en med attributtet for katalogserverne som støtter området henting. Området størrelsen må 1000 eller mindre for Windows 2000 og 1500 eller i Windows Server 2003. (Automatic Translation)
                    
                
jquery.validationEngine-ro.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 177 lines
                    
25                "dateTimeRange": {
                    
26                    "regex": "none",
                    
27                    "alertText": "* Intervalul de timp ",
                    
30                "minSize": {
                    
31                    "regex": "none",
                    
32                    "alertText": "* Sunt permise cel putin ",
                    
74                "creditCard": {
                    
75                    "regex": "none",
                    
76                    "alertText": "* Nevalid num?rul de card de credit"
                    
83                "email": {
                    
84                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
85                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
117                "onlyLetterNumber": {
                    
118                    "regex": /^[0-9a-zA-Z]+$/,
                    
119                    "alertText": "* Trebuie sa folosesti doar litere si numere intregi"
                    
                
sr_RS.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Molimo da unesete važeću e-mail adresu'
                    
259            },
                    
260            regexp: {
                    
261                'default': 'Molimo da unesete vrednost koja se poklapa sa paternom'
                    
                
ro_RO.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Te rog sa introduci o adresa de email valide'
                    
259            },
                    
260            regexp: {
                    
261                'default': 'Te rog sa introduci o valoare in formatul'
                    
                
es_CL.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Por favor ingrese un email válido'
                    
259            },
                    
260            regexp: {
                    
261                'default': 'Por favor ingrese un valor que coincida con el patrón'
                    
                
VCardResultParser.java https://gitlab.com/taveek/cordova-plugin-barcodescanner | Java | 341 lines
                    
25import java.util.List;
                    
26import java.util.regex.Matcher;
                    
27import java.util.regex.Pattern;
                    
46  @Override
                    
47  public AddressBookParsedResult parse(Result result) {
                    
48    // Although we should insist on the raw text ending with "END:VCARD", there's no reason
                    
62    List<List<String>> phoneNumbers = matchVCardPrefixedField("TEL", rawText, true, false);
                    
63    List<List<String>> emails = matchVCardPrefixedField("EMAIL", rawText, true, false);
                    
64    List<String> note = matchSingleVCardPrefixedField("NOTE", rawText, false, false);
                    
64    List<String> note = matchSingleVCardPrefixedField("NOTE", rawText, false, false);
                    
65    List<List<String>> addresses = matchVCardPrefixedField("ADR", rawText, true, true);
                    
66    List<String> org = matchSingleVCardPrefixedField("ORG", rawText, true, true);
                    
73    List<String> instantMessenger = matchSingleVCardPrefixedField("IMPP", rawText, true, false);
                    
74    return new AddressBookParsedResult(toPrimaryValues(names), 
                    
75                                       null, 
                    
                
es_ES.js https://gitlab.com/darmah250903/agung | JavaScript | 389 lines
                    
58        },
                    
59        emailAddress: {
                    
60            default: 'Por favor introduce un email válido',
                    
270        },
                    
271        regexp: {
                    
272            default: 'Por favor introduce un valor que coincida con el patrón',
                    
                
contact_searcher.rb https://github.com/dwaynemac/contacts.git | Ruby | 294 lines
                    
28  # @option selector :telephone, searches within all telephones
                    
29  # @option selector :email, searches within all emails
                    
30  # @option selector :address
                    
133            })
                    
134          when 'telephone', 'email', 'address', 'custom_attribute', 'occupation', 'identification'
                    
135            andit({
                    
135            andit({
                    
136              :contact_attributes => { '$elemMatch' => { "_type" => k.camelize, "value" => Regexp.new(v.to_s,Regexp::IGNORECASE)}}
                    
137            })
                    
138          when 'country', 'state', 'city', 'postal_code', 'neighborhood'
                    
139            andit({:contact_attributes => { '$elemMatch' => { "_type" => "Address", k => Regexp.new(v.to_s)}}})
                    
140          when 'contact_attributes'
                    
190          when 'first_name', 'last_name'
                    
191            self.new_selector[k] = v.is_a?(String)? Regexp.new(v,Regexp::IGNORECASE) : v
                    
192          when 'tags'
                    
                
jquery.validationEngine-en.js https://gitlab.com/kaouech/theme | JavaScript | 206 lines
                    
30                "minSize": {
                    
31                    "regex": "none",
                    
32                    "alertText": "* Minimum ",
                    
35                "maxSize": {
                    
36                    "regex": "none",
                    
37                    "alertText": "* Maximum ",
                    
85                "email": {
                    
86                    // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#    e-mail-state-%28type=email%29 )
                    
87                    "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
                    
87                    "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
                    
88                    "alertText": "* Invalid email address"
                    
89                },
                    
144                "onlyLetterNumber": {
                    
145                    "regex": /^[0-9a-zA-Z]+$/,
                    
146                    "alertText": "* No special characters allowed"
                    
                
jquery.validationEngine-da.js https://gitlab.com/fayimora/pp | JavaScript | 135 lines
                    
24                "maxSize": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* Maksimum ",
                    
29                "groupRequired": {
                    
30                    "regex": "none",
                    
31                    "alertText": "* Du skal udfylde mindst et af følgende felter"
                    
62                "creditCard": {
                    
63                    "regex": "none",
                    
64                    "alertText": "* Ugyldigt kreditkortnummer"
                    
71                "email": {
                    
72                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
73                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
97                "onlyNumberSp": {
                    
98                    "regex": /^[0-9\ ]+$/,
                    
99                    "alertText": "* Kun tal"
                    
                
dojo.js https://github.com/vikram/lisplibraries.git | JavaScript | 158 lines
                    
40			"dropdowntimepicker": "dojo.widget.DropdownTimePicker",
                    
41			"emaillisttextbox": "dojo.widget.InternetTextbox",
                    
42			"emailtextbox": "dojo.widget.InternetTextbox",
                    
61			"integertextbox": "dojo.widget.IntegerTextbox",
                    
62			"ipaddresstextbox": "dojo.widget.InternetTextbox",
                    
63			"layoutcontainer": "dojo.widget.LayoutContainer",
                    
75			"realnumbertextbox": "dojo.widget.RealNumberTextbox",
                    
76			"regexptextbox": "dojo.widget.RegexpTextbox",
                    
77			"repeater": "dojo.widget.Repeater", 
                    
                
ValidatorPluginManager.php https://gitlab.com/yousafsyed/easternglamor | PHP | 196 lines
                    
73        'digits'                   => 'Zend\Validator\Digits',
                    
74        'emailaddress'             => 'Zend\Validator\EmailAddress',
                    
75        'explode'                  => 'Zend\Validator\Explode',
                    
111        'postcode'                 => 'Zend\I18n\Validator\PostCode',
                    
112        'regex'                    => 'Zend\Validator\Regex',
                    
113        'sitemapchangefreq'        => 'Zend\Validator\Sitemap\Changefreq',
                    
                
user.php https://github.com/paulcinelli/kohanajobs.git | PHP | 358 lines
                    
219			->callback('password', array($this, 'check_password'))
                    
220			->callback('email', array($this, 'email_available'));
                    
221
                    
236			// @todo set('link', 'full url')
                    
237			->set('code', Auth::instance()->hash_password($this->email.'+'.$array['email']))
                    
238			->set('new_email', $array['email']);
                    
265	{
                    
266		// Email was base64 encoded in URL in order to make it less visible that the URL contains an email address,
                    
267		// not that that would be an immediate security threat. Base64 encoding makes urlencoding not necessary anymore.
                    
284
                    
285		if ($code !== Auth::instance()->hash_password($this->email.'+'.$new_email, Auth::instance()->find_salt($code)))
                    
286		{
                    
302		// In that case, the original confirm_signup link gets invalid automatically because it uses the email as hashed confirmation code.
                    
303		// No problem, though, if the user confirms his new email address, we can as well confirm his account right here.
                    
304		if ( ! $this->has('roles', ORM::factory('role', array('name' => 'user'))))
                    
                
devise.rb https://github.com/bwalding/devise.git | Ruby | 191 lines
                    
36  # These keys will be downcased upon creating or modifying a user and when used
                    
37  # to authenticate or find a user. Default is :email.
                    
38  config.case_insensitive_keys = [ :email ]
                    
41  # These keys will have whitespace before and after removed upon creating or
                    
42  # modifying a user and when used to authenticate or find a user. Default is :email.
                    
43  config.strip_whitespace_keys = [ :email ]
                    
71  # Defines which key will be used when confirming an account
                    
72  # config.confirmation_keys = [ :email ]
                    
73
                    
91
                    
92  # Regex to use to validate the email address
                    
93  # config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
                    
109  # Defines which strategy will be used to unlock an account.
                    
110  # :email = Sends an unlock link to the user email
                    
111  # :time  = Re-enables login after a certain amount of time (see :unlock_in below)
                    
                
server.coffee https://gitlab.com/brandnewcampaign/townsquare-chat | CoffeeScript | 320 lines
                    
1Importer.Slack = class Importer.Slack extends Importer.Base
                    
2	constructor: (name, descriptionI18N, fileTypeRegex) ->
                    
3		super(name, descriptionI18N, fileTypeRegex)
                    
81		selectionUsers = tempUsers.map (user) ->
                    
82			return new Importer.SelectionUser user.id, user.name, user.profile.email, user.deleted, user.is_bot, !user.is_bot
                    
83		selectionChannels = tempChannels.map (channel) ->
                    
113					Meteor.runAsUser startedByUserId, () =>
                    
114						existantUser = RocketChat.models.Users.findOneByEmailAddress user.profile.email
                    
115						if existantUser
                    
121						else
                    
122							userId = Accounts.createUser { email: user.profile.email, password: Date.now() + user.name + user.profile.email.toUpperCase() }
                    
123							Meteor.runAsUser userId, () =>
                    
140								Meteor.call 'setUserActiveStatus', userId, false
                    
141							#TODO: Maybe send emails?
                    
142							user.rocketId = userId
                    
                
EmailAddress.java https://bitbucket.org/cng1985/jodd.git | Java | 300 lines
                    
56 * Note: This does not do any header-length-checking. There are no such limitations on the
                    
57 * email address grammar in 2822, though email headers in general do have length restrictions.
                    
58 * So if the return path
                    
209	/**
                    
210	 * Returns whether or not any emails sent to this email address come back as bounced
                    
211	 * (undeliverable).
                    
215	 *
                    
216	 * @return whether or not any emails sent to this email address come back as bounced
                    
217	 *         (undeliverable).
                    
274	 *
                    
275	 * @param email the email address string to test for validity.
                    
276	 * @return true if the given text valid according to RFC 2822, false otherwise.
                    
284		if (o instanceof EmailAddress) {
                    
285			EmailAddress ea = (EmailAddress) o;
                    
286			return getText().equals(ea.getText());
                    
                
PayerInfoType.java https://gitlab.com/CORP-RESELLER/buttonmanager-sdk-java | Java | 395 lines
                    
37	/**
                    
38	 * Email address of payer Character length and limitations: 127
                    
39	 * single-byte characters	 
                    
49	/**
                    
50	 * Status of payer's email address 	 
                    
51	 */ 
                    
74	 */ 
                    
75	private AddressType address;
                    
76
                    
200	 */
                    
201	 public void setAddress(AddressType address) {
                    
202	 	this.address = address;
                    
370        if (childNode != null && !isWhitespaceNode(childNode)) {
                    
371		    this.address =  new AddressType(childNode);
                    
372		}
                    
                
registration.js https://gitlab.com/tenstairs/meteor | JavaScript | 276 lines
                    
72    _.each(body.list, function (email) {
                    
73      var emailId = email.mail_id;
                    
74      var subject = email.mail_subject;
                    
103
                    
104  var apiToken = testUtils.deployWithNewEmail(s, email, appName);
                    
105
                    
106  // Check that we got a registration email in our inbox.
                    
107  var registrationEmail = waitForEmail(email, /Set a password/,
                    
108                                       /set a password/, 60);
                    
207    expectInvalidToken(token);
                    
208    var registrationEmail = waitForEmail(email, /Set a password/,
                    
209                                         /set a password/, 60);
                    
212    );
                    
213    if (! emailToken || ! emailToken[1]) {
                    
214      throw new Error('No registration token in email');
                    
                
RequireValidatedEmailPlugin.php https://gitlab.com/BeS/io.schiessle.org | PHP | 281 lines
                    
4 *
                    
5 * Plugin that requires the user to have a validated email address before they
                    
6 * can post notices
                    
127            // TRANS: Client exception thrown when trying to register without providing an e-mail address.
                    
128            throw new ClientException(_m('You must provide an email address to register.'));
                    
129        }
                    
134    /**
                    
135     * Check if a user has a validated email address or has been
                    
136     * otherwise grandfathered in.
                    
226                // TRANS: Plugin description.
                    
227                _m('Disables posting without a validated email address.'));
                    
228
                    
245            if (!$this->validated($user)) {
                    
246                $action->element('div', array('class'=>'error'), _m('You must validate an email address before posting!'));
                    
247            }
                    
                
validate.js https://github.com/MyITCRM/myitcrm1.git | JavaScript | 248 lines
                    
6if(document.install.copy[0].checked){
                    
7document.install.COMPANY_ADDRESS.value=document.install.address.value;
                    
8document.install.COMPANY_CITY.value=document.install.city.value;
                    
162    errFlag['default_email'] = true;
                    
163    _qfMsg = _qfMsg + '\n - Please enter the Admins email address';
                    
164	frm.elements['default_email'].className = 'error';
                    
166
                    
167  value = frm.elements['default_email'].value;
                    
168  var regex = /^((\"[^\"\f\n\r\t\v\b]+\")|([\w\!\#\$\%\&'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/;
                    
168  var regex = /^((\"[^\"\f\n\r\t\v\b]+\")|([\w\!\#\$\%\&'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/;
                    
169  if (value != '' && !regex.test(value) && !errFlag['email']) {
                    
170    errFlag['email'] = true;
                    
170    errFlag['email'] = true;
                    
171    _qfMsg = _qfMsg + '\n - Please enter a valid email address';
                    
172	frm.elements['email'].className = 'error';
                    
                
devise.rb https://github.com/dluxemburg/devise.git | Ruby | 444 lines
                    
55  mattr_accessor :authentication_keys
                    
56  @@authentication_keys = [ :email ]
                    
57
                    
63  mattr_accessor :case_insensitive_keys
                    
64  @@case_insensitive_keys = [ :email ]
                    
65
                    
85
                    
86  # Email regex used to validate email formats. It simply asserts that
                    
87  # an one (and only one) @ exists in the given string. This is mainly
                    
88  # to give user feedback and not to assert the e-mail validity.
                    
89  mattr_accessor :email_regexp
                    
90  @@email_regexp = /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/
                    
113  mattr_accessor :confirmation_keys
                    
114  @@confirmation_keys = [ :email ]
                    
115
                    
                
test_x509name.rb https://github.com/rkh/jruby.git | Ruby | 266 lines
                    
10  OpenSSL::ASN1::ObjectId.register(
                    
11    "1.2.840.113549.1.9.1", "emailAddress", "emailAddress")
                    
12  OpenSSL::ASN1::ObjectId.register(
                    
83    ary = name.to_a
                    
84    assert_equal("/DC=org/DC=ruby-lang/CN=GOTOU Yuuzou/emailAddress=gotoyuzo@ruby-lang.org/serialNumber=123", name.to_s)
                    
85    assert_equal("DC", ary[0][0])
                    
87    assert_equal("CN", ary[2][0])
                    
88    assert_equal("emailAddress", ary[3][0])
                    
89    assert_equal("serialNumber", ary[4][0])
                    
144        ["CN", "GOTOU Yuuzou"],
                    
145        ["emailAddress", "gotoyuzo@ruby-lang.org"],
                    
146      ],
                    
172        ["1.2.840.113549.1.9.1", "gotoyuzo@ruby-lang.org"],
                    
173        ["emailAddress", "gotoyuzo@ruby-lang.org"],
                    
174      ],
                    
                
Valid.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 551 lines
                    
100	/**
                    
101	 * Check an email address for correct format.
                    
102	 *
                    
105	 *
                    
106	 * @param   string  $email  email address
                    
107	 * @param   boolean $strict strict RFC compatibility
                    
141	/**
                    
142	 * Validate the domain of an email address by checking if the domain has a
                    
143	 * valid MX record.
                    
146	 *
                    
147	 * @param   string  $email  email address
                    
148	 * @return  boolean
                    
149	 */
                    
150	public static function email_domain($email)
                    
151	{
                    
                
test_membership.py https://gitlab.com/yamhill/mailman | Python | 274 lines
                    
63                          system_preferences.preferred_language))
                    
64        self.assertEqual(member.address.email, 'aperson@example.com')
                    
65        self.assertEqual(member.list_id, 'test.example.com')
                    
204                              system_preferences.preferred_language))
                    
205        self.assertEqual(cm.exception.email, email)
                    
206
                    
222                              system_preferences.preferred_language))
                    
223        self.assertEqual(cm.exception.email, email.lower())
                    
224
                    
226        # GL: #237 - When a new address is subscribed, any existing nonmember
                    
227        # subscriptions for this address; or any addresses also controlled by
                    
228        # this user, are deleted.
                    
242        self.assertEqual(
                    
243            {address.email for address in self._mlist.nonmembers.addresses},
                    
244            {'aperson@example.com',
                    
                
sq_AL.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 379 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Ju lutem vendosni një adresë email të vlefshme'
                    
262            },
                    
263            regexp: {
                    
264                'default': 'Ju lutem vendosni një vlerë që përputhet me modelin'
                    
                
punycode.js https://gitlab.com/Mirros/cdnjs | JavaScript | 530 lines
                    
442	/**
                    
443	 * Converts a Punycode string representing a domain name or an email address
                    
444	 * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
                    
447	 * @memberOf punycode
                    
448	 * @param {String} input The Punycoded domain name or email address to
                    
449	 * convert to Unicode.
                    
461	/**
                    
462	 * Converts a Unicode string representing a domain name or an email address to
                    
463	 * Punycode. Only the non-ASCII parts of the domain name will be converted,
                    
466	 * @memberOf punycode
                    
467	 * @param {String} input The domain name or email address to convert, as a
                    
468	 * Unicode string.
                    
469	 * @returns {String} The Punycode representation of the given domain name or
                    
470	 * email address.
                    
471	 */
                    
                
AttributeForm.jsx https://gitlab.com/blockbuster/react-router-2-with-browserHistory-not-working-public | JSX | 159 lines
                    
56                                       data-bv-notempty-message="The username is required and cannot be empty"
                    
57                                       data-bv-regexp="true" data-bv-regexp-regexp="^[a-zA-Z0-9_\.]+$"
                    
58                                       data-bv-regexp-message="The username can only consist of alphabetical, number, dot and underscore"
                    
69                        <div className="form-group">
                    
70                            <label className="col-lg-3 control-label">Email address</label>
                    
71                            <div className="col-lg-5">
                    
71                            <div className="col-lg-5">
                    
72                                <input className="form-control" name="email" type="email" data-bv-emailaddress="true"
                    
73                                       data-bv-emailaddress-message="The input is not a valid email address"/>
                    
                
dev_environment.rst https://github.com/hhamon/symfony-docs.git | ReStructuredText | 252 lines
                    
130(like in the above scenario to ``dev@example.com``). But then you may want
                    
131email sent to some specific email addresses to go through after all, and
                    
132not be redirected (even if it is in the dev environment). This can be done
                    
142            delivery_whitelist:
                    
143               # all email addresses matching these regexes will be delivered
                    
144               # like normal, as well as being sent to dev@example.com
                    
160            <swiftmailer:config>
                    
161                <!-- all email addresses matching these regexes will be delivered
                    
162                     like normal, as well as being sent to dev@example.com -->
                    
174            'delivery_whitelist' => [
                    
175                // all email addresses matching these regexes will be delivered
                    
176                // like normal, as well as being sent to dev@example.com
                    
182In the above example all email messages will be redirected to ``dev@example.com``
                    
183and messages sent to the ``admin@mydomain.com`` address or to any email address
                    
184belonging to the domain ``specialdomain.com`` will also be delivered as normal.
                    
                
filter.pas https://github.com/rsd/artica-1.5.git | Pascal | 420 lines
                    
101        if RegExpr.Exec(Table[i]) then begin
                    
102        if LowerCase(RegExpr.Match[1])='client_address'  then infos.client_address:=RegExpr.Match[2];
                    
103        if LowerCase(RegExpr.Match[1])='client_name'  then infos.client_name:=RegExpr.Match[2];
                    
104        if LowerCase(RegExpr.Match[1])='recipient'  then infos.recipient:=RegExpr.Match[2];
                    
105        if LowerCase(RegExpr.Match[1])='sender'  then infos.sender:=RegExpr.Match[2];
                    
106        if LowerCase(RegExpr.Match[1])='size'  then infos.size:=RegExpr.Match[2];
                    
181  
                    
182  if length(trim(email.ldap_ou))=0 then email.ldap_ou:=ldap.OU_From_eMail(Email.recipient);
                    
183  if length(trim(email.ldap_ou))=0 then begin
                    
233     LOGS:=TLOGS.Create;
                    
234     Email.ldap_uid:=ldap.EmailFromAliase(Email.recipient);
                    
235     if length(trim(email.ldap_ou))=0 then begin
                    
294          sql:='INSERT INTO messages (MessageID,mail_from,mailfrom_domain,mail_to,subject,zDate,received_date,SpamRate,message_path,filter_action,ou,MailSize,SpamInfos,quarantine) ';
                    
295    sql:=sql + 'VALUES("'+ email.md+'","' + email.sender+'","' + email.senderdomain+'","' + email.recipient +'","'+Subject+'",';
                    
296    sql:=sql + 'DATE_FORMAT(NOW(),''%Y-%m-%d %H:%I:%S''),DATE_FORMAT(NOW(),''%Y-%m-%d %H:%I:%S''),"0","'+email.md+'","' +email.Filter_result+'","' +email.ldap_ou+'","' + email.size + '","NONE","0")';
                    
                
forms.py https://github.com/aruder77/applause.git | Python | 214 lines
                    
13    """
                    
14    username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^[\w.@+-]+$',
                    
15        help_text = _("Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only."),
                    
106class PasswordResetForm(forms.Form):
                    
107    email = forms.EmailField(label=_("E-mail"), max_length=75)
                    
108
                    
118
                    
119    def save(self, domain_override=None, email_template_name='registration/password_reset_email.html',
                    
120             use_https=False, token_generator=default_token_generator, from_email=None, request=None):
                    
133            c = {
                    
134                'email': user.email,
                    
135                'domain': domain,
                    
142            send_mail(_("Password reset on %s") % site_name,
                    
143                t.render(Context(c)), from_email, [user.email])
                    
144
                    
                
devise.rb https://github.com/welcu/devise.git | Ruby | 164 lines
                    
4  # ==> Mailer Configuration
                    
5  # Configure the e-mail address which will be shown in DeviseMailer.
                    
6  config.mailer_sender = "please-change-me@config-initializers-devise.com"
                    
18  # Configure which keys are used when authenticating an user. By default is
                    
19  # just :email. You can configure it to use [:username, :subdomain], so for
                    
20  # authenticating an user, both parameters are required. Remember that those
                    
24  # should be aborted or not if the value is not present. By default is empty.
                    
25  # config.authentication_keys = [ :email ]
                    
26
                    
77
                    
78  # Regex to use to validate the email address
                    
79  # config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
                    
92  # Defines which strategy will be used to unlock an account.
                    
93  # :email = Sends an unlock link to the user email
                    
94  # :time  = Re-enables login after a certain amount of time (see :unlock_in below)
                    
                
fr_BE.js https://gitlab.com/brownmestizo/design-sandbox | JavaScript | 385 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Veuillez fournir une adresse e-mail valide'
                    
268            },
                    
269            regexp: {
                    
270                'default': 'Veuillez fournir une valeur correspondant au modèle'
                    
                
jquery.validationEngine-zh_CN.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 167 lines
                    
24                "minSize": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* 最少 ",
                    
64                "equals": {
                    
65                    "regex": "none",
                    
66                    "alertText": "* 请输入与上面相同的密码"
                    
69                    // credit: jquery.h5validate.js / orefalo
                    
70                    "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
                    
71                    "alertText": "* 无效的电话号码"
                    
73                "email": {
                    
74                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
75                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
155				"dateTimeFormat": {
                    
156	                "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
                    
157                    "alertText": "* 无效的日期或时间格式",
                    
                
mode-golang.js https://gitlab.com/itlboy/yii2-starter-installed | JavaScript | 406 lines
                    
10            token : "comment.doc.tag",
                    
11            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
12        }, 
                    
25        token : "comment.doc.tag.storage.type",
                    
26        regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
                    
27    };
                    
32        token : "comment.doc", // doc comment
                    
33        regex : "\\/\\*(?=\\*)",
                    
34        next  : start
                    
40        token : "comment.doc", // closing comment
                    
41        regex : "\\*\\/",
                    
42        next  : start
                    
84                    token : "comment",
                    
85                    regex : "\\/\\/.*$"
                    
86                },
                    
                
jquery.validationEngine-hr.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 167 lines
                    
19                "dateTimeRange": {
                    
20                    "regex": "none",
                    
21                    "alertText": "* Greška ",
                    
24                "minSize": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* Minimalno ",
                    
69                    // credit: jquery.h5validate.js / orefalo
                    
70                    "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
                    
71                    "alertText": "* Pogrešan unos telefonskog broja"
                    
73                "email": {
                    
74                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
75                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
107                "onlyLetterNumber": {
                    
108                    "regex": /^[0-9a-zA-Z]+$/,
                    
109                    "alertText": "* Nisu dozvoljeni specijalni znakovi"
                    
                
valid.php https://github.com/pratikdhaboo/kodelearn.git | PHP | 518 lines
                    
90	/**
                    
91	 * Check an email address for correct format.
                    
92	 *
                    
95	 *
                    
96	 * @param   string   email address
                    
97	 * @param   boolean  strict RFC compatibility
                    
99	 */
                    
100	public static function email($email, $strict = FALSE)
                    
101	{
                    
126	/**
                    
127	 * Validate the domain of an email address by checking if the domain has a
                    
128	 * valid MX record.
                    
134	 */
                    
135	public static function email_domain($email)
                    
136	{
                    
                
es_ES.js https://gitlab.com/dindaocktan/Penerimaan_Asissten_Praktikum | JavaScript | 353 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': 'Por favor introduce un email válido'
                    
247        },
                    
248        regexp: {
                    
249            'default': 'Por favor introduce un valor que coincida con el patrón'
                    
                
class.client.php https://gitlab.com/billyprice1/osTicket | PHP | 481 lines
                    
18abstract class TicketUser
                    
19implements EmailContact, ITicketUser, TemplateVariable {
                    
20
                    
48        return array(
                    
49            'email' => __('Email Address'),
                    
50            'name' => array('class' => 'PersonsName', 'desc' => __('Full Name')),
                    
73    function getId() { return ($this->user) ? $this->user->getId() : null; }
                    
74    function getEmail() { return ($this->user) ? $this->user->getEmail() : null; }
                    
75
                    
113
                    
114    static function lookupByEmail($email) {
                    
115
                    
115
                    
116        if (!($user=User::lookup(array('emails__address' => $email))))
                    
117            return null;
                    
                
error_messages.py https://github.com/twoolie/django.git | Python | 264 lines
                    
103
                    
104    def test_regexfield(self):
                    
105        e = {
                    
110        }
                    
111        f = RegexField(r'^\d+$', min_length=5, max_length=10, error_messages=e)
                    
112        self.assertFormErrors([u'REQUIRED'], f.clean, '')
                    
116
                    
117    def test_emailfield(self):
                    
118        e = {
                    
123        }
                    
124        f = EmailField(min_length=8, max_length=10, error_messages=e)
                    
125        self.assertFormErrors([u'REQUIRED'], f.clean, '')
                    
191
                    
192    def test_ipaddressfield(self):
                    
193        e = {
                    
                
html.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 428 lines
                    
143	 *
                    
144	 * @param   string  email address
                    
145	 * @return  string
                    
146	 */
                    
147	public static function email($email)
                    
148	{
                    
168	 *
                    
169	 * @param   string  email address to send to
                    
170	 * @param   string  link text
                    
181		{
                    
182			// Extract the parameters from the email address
                    
183			list ($email, $params) = explode('?', $email, 2);
                    
196
                    
197		// Title defaults to the encoded email address
                    
198		empty($title) and $title = $safe;
                    
                
FMModelVerify_email.php https://gitlab.com/hunt9310/ras | PHP | 119 lines
                    
2
                    
3class FMModelVerify_email {
                    
4  ////////////////////////////////////////////////////////////////////////////////////////
                    
20  //////////////////////////////////////////////////////////////////////////////////////// 
                    
21  function setValidation($gid, $md5, $email) {
                    
22		global $wpdb;
                    
22		global $wpdb;
                    
23		$query = $wpdb->prepare("SELECT * FROM ".$wpdb->prefix."formmaker_submits WHERE group_id='%d' AND element_label= 'verifyInfo' AND element_value REGEXP 'verified'", $gid);
                    
24		$verified_row = $wpdb->get_row($query);
                    
26		if($verified_row)
                    
27			$view = __('Your email address is already verified.', 'form_maker');
                    
28		else
                    
29		{
                    
30			$query = $wpdb->prepare("SELECT * FROM ".$wpdb->prefix."formmaker_submits WHERE group_id='%d' AND element_label REGEXP 'verifyInfo' AND element_value  NOT REGEXP 'verified'", $gid);
                    
31			$rows = $wpdb->get_results($query);
                    
                
emailaddress.js https://gitlab.com/sc15lar/algorithmsproject | JavaScript | 495 lines
                    
149goog.format.EmailAddress.LOCAL_PART_ =
                    
150    new RegExp('^' + goog.format.EmailAddress.LOCAL_PART_REGEXP_STR_ + '$');
                    
151
                    
157goog.format.EmailAddress.DOMAIN_PART_ =
                    
158    new RegExp('^' + goog.format.EmailAddress.DOMAIN_PART_REGEXP_STR_ + '$');
                    
159
                    
164 */
                    
165goog.format.EmailAddress.EMAIL_ADDRESS_ = new RegExp(
                    
166    '^' + goog.format.EmailAddress.LOCAL_PART_REGEXP_STR_ + '@' +
                    
204 */
                    
205goog.format.EmailAddress.prototype.setAddress = function(address) {
                    
206  this.address = address;
                    
284 * Checks if the provided string is a valid email address. Supports both
                    
285 * simple email addresses (address specs) and addresses that contain display
                    
286 * names.
                    
                
jquery.validationEngine-de.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 134 lines
                    
19                "maxSize": {
                    
20                    "regex": "none",
                    
21                    "alertText": "* Maximal ",
                    
24				"groupRequired": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* You must fill one of the following fields"
                    
57                "creditCard": {
                    
58                    "regex": "none",
                    
59                    "alertText": "* Ungültige Kreditkartennummer"
                    
66                "email": {
                    
67                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
68                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
93                "onlyLetterSp": {
                    
94	                 "regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
                    
95                     "alertText": "* Nur Buchstaben erlaubt"
                    
                
jquery.validationEngine-de.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 135 lines
                    
29				"groupRequired": {
                    
30                    "regex": "none",
                    
31                    "alertText": "* Sie müssen mindestens eines dieser Felder ausfüllen"
                    
58                "equals": {
                    
59                    "regex": "none",
                    
60                    "alertText": "* Felder stimmen nicht überein"
                    
62                "creditCard": {
                    
63                    "regex": "none",
                    
64                    "alertText": "* Ungültige Kreditkartennummer"
                    
71                "email": {
                    
72                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
73                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
102				"onlyLetterNumber": {
                    
103					"regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/,
                    
104					"alertText": "* Keine Sonderzeichen erlaubt"
                    
                
collapse.html https://gitlab.com/x33n/formvalidation | HTML | 264 lines
                    
37                                    <div class="form-group">
                    
38                                        <label class="col-lg-3 control-label">Email address</label>
                    
39                                        <div class="col-lg-5">
                    
39                                        <div class="col-lg-5">
                    
40                                            <input type="text" class="form-control" name="email" />
                    
41                                        </div>
                    
170                    },
                    
171                    regexp: {
                    
172                        regexp: /^[A-Z\s]+$/i,
                    
185                    },
                    
186                    regexp: {
                    
187                        regexp: /^[A-Z\s]+$/i,
                    
210                validators: {
                    
211                    emailAddress: {
                    
212                        message: 'The input is not a valid email address'
                    
                
forms.py https://github.com/chengwang/kitsune.git | Python | 195 lines
                    
24EMAIL_REQUIRED = _lazy(u'Email address is required.')
                    
25EMAIL_SHORT = _lazy(u'Email address is too short (%(show_value)s characters). '
                    
26                    'It must be at least %(limit_value)s characters.')
                    
26                    'It must be at least %(limit_value)s characters.')
                    
27EMAIL_LONG = _lazy(u'Email address is too long (%(show_value)s characters). '
                    
28                   'It must be %(limit_value)s characters or less.')
                    
49                        'max_length': USERNAME_LONG})
                    
50    email = forms.EmailField(label=_lazy(u'Email address:'),
                    
51                             error_messages={'required': EMAIL_REQUIRED,
                    
178    """A simple form that requires an email address."""
                    
179    email = forms.EmailField(label=_lazy(u'Email address:'))
                    
180
                    
184    not the current user's email."""
                    
185    email = forms.EmailField(label=_lazy(u'Email address:'))
                    
186
                    
                
Validation.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 401 lines
                    
49			if ($valid) {
                    
50				$oldEmail = $user->getEmail();
                    
51				$auth->doGetUserInfo($user);
                    
52				if ($user->getEmail() != $oldEmail) {
                    
53					// FIXME OJS requires email addresses to be unique; if changed email already exists, ignore
                    
54					if ($userDao->userExistsByEmail($user->getEmail())) {
                    
54					if ($userDao->userExistsByEmail($user->getEmail())) {
                    
55						$user->setEmail($oldEmail);
                    
56					}
                    
257
                    
258		$suggestion = String::regexp_replace('/[^a-zA-Z0-9_-]/', '', String::strtolower($initial . $lastName));
                    
259		$userDao =& DAORegistry::getDAO('UserDAO');
                    
                
mail_global.py https://gitlab.com/yaojian/RenjuAI | Python | 295 lines
                    
15        self.__register_macro_define()
                    
16        self.__register_regex()
                    
17        self.__register_etc(etc_file)
                    
40        self.MAIL_PROTO_WEBMAIL = 'webmail'
                    
41        # macro for mail address node
                    
42        self.IN_DEGREE_AS_TO = 2
                    
54
                    
55    def __register_regex(self):
                    
56        self.email_reg = re.compile('[^@|\s]+@[^@]+\.[^@|\s]+')
                    
56        self.email_reg = re.compile('[^@|\s]+@[^@]+\.[^@|\s]+')
                    
57        self.email_reg_2 = re.compile(u"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-.]+)+")
                    
58        self.email_addr_ignore = re.compile(u'undisclosed-recipients|Mail Delivery Subsystem|Mail Delivery System',
                    
59                                            flags=re.IGNORECASE)
                    
60        self.email_html_br_tag = re.compile(u"<br.*?>|<p.*?>", flags=re.IGNORECASE | re.DOTALL)
                    
61        self.email_html_tag = re.compile(u'<style.*?style>|<script.*?script>|<.*?>|[\r\t]{2,}|&nbsp;', flags=re.IGNORECASE | re.DOTALL)
                    
                
i18n.js https://gitlab.com/x33n/formvalidation | JavaScript | 322 lines
                    
19                '<div class="form-group">',
                    
20                    '<label class="col-lg-3 control-label">Email address</label>',
                    
21                    '<div class="col-lg-5">',
                    
162                    validators: {
                    
163                        emailAddress: {}
                    
164                    }
                    
234        this.$fullName = this.fv.getFieldElements('fullName');
                    
235        this.$email    = this.fv.getFieldElements('email');
                    
236        this.$userName = this.fv.getFieldElements('username');
                    
267        this.fv.validate();
                    
268        expect(this.fv.getMessages(this.$userName, 'regexp')[0]).toEqual(i18n.regexp['default']);
                    
269
                    
278        this.fv.validate();
                    
279        expect(this.fv.getMessages(this.$email, 'emailAddress')[0]).toEqual(i18n.emailAddress['default']);
                    
280
                    
                
setting.rb https://github.com/lzap/foreman.git | Ruby | 370 lines
                    
17  BLANK_ATTRS = %w{ host_owner trusted_hosts login_delegation_logout_url root_pass default_location default_organization websockets_ssl_key websockets_ssl_cert oauth_consumer_key oauth_consumer_secret login_text oidc_audience oidc_issuer oidc_algorithm
                    
18                    smtp_address smtp_domain smtp_user_name smtp_password smtp_openssl_verify_mode smtp_authentication sendmail_arguments sendmail_location http_proxy http_proxy_except_list default_locale default_timezone ssl_certificate ssl_ca_file ssl_priv_key default_pxe_item_global default_pxe_item_local oidc_jwks_url instance_title }
                    
19  ARRAY_HOSTNAMES = %w{trusted_hosts}
                    
23  REGEXP_ATTRS = %w{remote_addr}
                    
24  EMAIL_ATTRS = %w{administrator email_reply_address}
                    
25  NOT_STRIPPED = %w{}
                    
48  validate :validate_host_owner, :if => proc { |s| s.name == "host_owner" }
                    
49  validates :value, :format => { :with => Resolv::AddressRegex }, :if => proc { |s| IP_ATTRS.include? s.name }
                    
50  validates :value, :regexp => true, :if => proc { |s| REGEXP_ATTRS.include? s.name }
                    
53  validates :value, :array_hostnames_ips => true, :if => proc { |s| ARRAY_HOSTNAMES.include? s.name }
                    
54  validates :value, :email => true, :if => proc { |s| EMAIL_ATTRS.include? s.name }
                    
55  before_validation :set_setting_type_from_value
                    
224  def self.convert_array_to_regexp(array, regexp_options = {})
                    
225    Regexp.new(array.map { |string| regexp_expand_wildcard_string(string, regexp_options) }.join('|'))
                    
226  end
                    
                
LinkifyTest.java https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | Java | 340 lines
                    
29import java.util.Locale;
                    
30import java.util.regex.Matcher;
                    
31import java.util.regex.Pattern;
                    
84
                    
85        assertTrue(Linkify.addLinks(spannable, Linkify.EMAIL_ADDRESSES));
                    
86        spans = spannable.getSpans(0, spannable.length(), URLSpan.class);
                    
111        tv.setText(spannable);
                    
112        assertTrue(Linkify.addLinks(tv, Linkify.EMAIL_ADDRESSES));
                    
113        spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class);
                    
                
validator.js https://gitlab.com/ceritadikit/si_gudang | JavaScript | 411 lines
                    
12        email_illegalChars = /[\(\)\<\>\,\;\:\\\/\"\[\]]/,
                    
13        email_filter = /^.+@.+\..{2,6}$/;  // exmaple email "steve@s-i.photo"
                    
14
                    
26        number          : 'not a number',
                    
27        email           : 'email address is invalid',
                    
28        email_repeat    : 'emails do not match',
                    
72        email : function(a){
                    
73            if ( !email_filter.test( a ) || a.match( email_illegalChars ) ){
                    
74                alertTxt = a ? message.email : message.empty;
                    
120            if( pattern ){
                    
121                var regex, jsRegex;
                    
122                switch( pattern ){
                    
135                try{
                    
136                    jsRegex = new RegExp(regex).test(a);
                    
137                    if( a && !jsRegex )
                    
                
RepairDatabaseTest.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 130 lines
                    
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
                    
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
                    
25 * 
                    
88	    $result = $this->getRepairTableParamsResult($bean);
                    
89	    $this->assertRegExp('/ALTER TABLE meetings\s+?modify column status varchar\(100\)  DEFAULT \'Planned\' NULL/i', $result);
                    
90	    
                    
94	    $this->assertTrue(!empty($result));
                    
95	    $this->assertRegExp('/ALTER TABLE calls\s+?modify column status varchar\(100\)  DEFAULT \'Planned\' NULL/i', $result);
                    
96	    */
                    
100	    $this->assertTrue(!empty($result));	    
                    
101	    $this->assertRegExp('/ALTER TABLE tasks\s+?modify column status varchar\(100\)  DEFAULT \'Not Started\' NULL/i', $result);
                    
102 
                    
                
mail.py https://github.com/chandankumar2199/askbot-devel.git | Python | 137 lines
                    
22
                    
23def extract_first_email_address(text):
                    
24    """extract first matching email address
                    
27    """
                    
28    match = const.EMAIL_REGEX.search(text)
                    
29    if match:
                    
89
                    
90    if raise_on_failure is True, exceptions.EmailNotSent is raised
                    
91    """
                    
98                        body_text, 
                    
99                        django_settings.DEFAULT_FROM_EMAIL,
                    
100                        recipient_list,
                    
128    if hasattr(django_settings, 'DEFAULT_FROM_EMAIL'):
                    
129        from_email = django_settings.DEFAULT_FROM_EMAIL
                    
130
                    
                
validators.html https://gitlab.com/x33n/formvalidation | HTML | 285 lines
                    
63                            <div class="form-group">
                    
64                                <label class="col-lg-3 control-label">Email address</label>
                    
65                                <div class="col-lg-5">
                    
65                                <div class="col-lg-5">
                    
66                                    <input type="text" class="form-control" name="email" />
                    
67                                </div>
                    
174                    },
                    
175                    regexp: {
                    
176                        regexp: /^[a-zA-Z0-9_\.]+$/,
                    
197                    notEmpty: {
                    
198                        message: 'The email address is required and can\'t be empty'
                    
199                    },
                    
199                    },
                    
200                    emailAddress: {
                    
201                        message: 'The input is not a valid email address'
                    
                
en_US.js https://gitlab.com/x33n/formvalidation | JavaScript | 379 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Please enter a valid email address'
                    
204            ip: {
                    
205                'default': 'Please enter a valid IP address',
                    
206                ipv4: 'Please enter a valid IPv4 address',
                    
206                ipv4: 'Please enter a valid IPv4 address',
                    
207                ipv6: 'Please enter a valid IPv6 address'
                    
208            },
                    
225            mac: {
                    
226                'default': 'Please enter a valid MAC address'
                    
227            },
                    
262            },
                    
263            regexp: {
                    
264                'default': 'Please enter a value matching the pattern'
                    
                
Ext.form.VTypes.html https://github.com/ktk070/Anopier.git | HTML | 54 lines
                    
31'This field should o...</div><div class="long">The error text to display when the alphanumeric validation function returns false.  Defaults to:
                    
32<tt>'This field should only contain letters, numbers and _'</tt></div></div></td><td class="msource">VTypes</td></tr><tr class="property-row expandable "><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.form.VTypes-emailMask"></a><b><a href="source/VTypes.html#prop-Ext.form.VTypes-emailMask">emailMask</a></b> : RegExp<div class="mdesc"><div class="short">The keystroke filter mask to be applied on email input.  See the email method for 
                    
33information about more complex ema...</div><div class="long">The keystroke filter mask to be applied on email input.  See the <a href="output/Ext.form.VTypes.html#Ext.form.VTypes-email" ext:member="email" ext:cls="Ext.form.VTypes">email</a> method for 
                    
34information about more complex email validation. Defaults to:
                    
35<tt>/[a-z0-9_\.\-@]/i</tt></div></div></td><td class="msource">VTypes</td></tr><tr class="property-row expandable "><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.form.VTypes-emailText"></a><b><a href="source/VTypes.html#prop-Ext.form.VTypes-emailText">emailText</a></b> : String<div class="mdesc"><div class="short">The error text to display when the email validation function returns false.  Defaults to:
                    
36'This field should be an e-...</div><div class="long">The error text to display when the email validation function returns false.  Defaults to:
                    
42    :
                    
43                                        Boolean<div class="mdesc"><div class="short">The function used to validate alphanumeric values</div><div class="long">The function used to validate alphanumeric values<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>value</code> : String<div class="sub-desc">The value</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc">true if the RegExp test passed, and false if not.</div></li></ul></div></div></div></td><td class="msource">VTypes</td></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.form.VTypes-email"></a><b><a href="source/VTypes.html#method-Ext.form.VTypes-email">email</a></b>(&nbsp;<code>String&nbsp;value</code>&nbsp;)
                    
44    :
                    
48this function can be overridden if a more comprehensive validation scheme is desired.  See the validation
                    
49section of the <a href="http://en.wikipedia.org/wiki/E-mail_address">Wikipedia article on email addresses</a> 
                    
50for additional information.  This implementation is intended to validate the following emails:<tt>
                    
51'barney@example.de', 'barney.rubble@example.com', 'barney-rubble@example.coop', 'barney+rubble@example.com'
                    
52</tt>.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>value</code> : String<div class="sub-desc">The email address</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc">true if the RegExp test passed, and false if not.</div></li></ul></div></div></div></td><td class="msource">VTypes</td></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.form.VTypes-url"></a><b><a href="source/VTypes.html#method-Ext.form.VTypes-url">url</a></b>(&nbsp;<code>String&nbsp;value</code>&nbsp;)
                    
53    :
                    
                
de_DE.js https://gitlab.com/danielc103/danielc103Website | JavaScript | 384 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Bitte gültige Emailadresse eingeben'
                    
267            },
                    
268            regexp: {
                    
269                'default': 'Bitte Wert eingeben, der der Maske entspricht'
                    
                
admin_users_spec.rb https://gitlab.com/habukagumba/gitlab-ce | Ruby | 510 lines
                    
113      expect(email.subject).to have_content('Account was created')
                    
114      expect(email.text_part.body).to have_content(user.email)
                    
115      expect(email.text_part.body).to have_content('password')
                    
129    context 'with new users set to external enabled' do
                    
130      context 'with regex to match internal user email address set', :js do
                    
131        before do
                    
430
                    
431      expect(page).to have_content("Secondary email: #{secondary_email.email}")
                    
432
                    
432
                    
433      accept_confirm { find("#remove_email_#{secondary_email.id}").click }
                    
434
                    
434
                    
435      expect(page).not_to have_content(secondary_email.email)
                    
436    end
                    
                
emailNotificationConfiguration.php https://github.com/solusee/OrangeEarthstoneHRM.git | PHP | 207 lines
                    
25
                    
26$allNotifications = array(	EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_PENDING_APPROVAL => $lang_Admin_ENS_LeaveApplications,
                    
27							EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_APPROVED => $lang_Admin_ENS_LeaveApprovals,
                    
27							EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_APPROVED => $lang_Admin_ENS_LeaveApprovals,
                    
28							EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_CANCELLED => $lang_Admin_ENS_LeaveCancellations,
                    
29							EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_REJECTED => $lang_Admin_ENS_LeaveRejections,
                    
29							EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_REJECTED => $lang_Admin_ENS_LeaveRejections,
                    
30							EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_JOB_APPLIED => $lang_Admin_ENS_JobApplications,
                    
31                            EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_SEEK_HIRE_APPROVAL => $lang_Admin_ENS_SeekHireApproval,
                    
31                            EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_SEEK_HIRE_APPROVAL => $lang_Admin_ENS_SeekHireApproval,
                    
32                            EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_HIRE_TASKS => $lang_Admin_ENS_HiringTasks,
                    
33                            EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_HIRE_APPROVED => $lang_Admin_ENS_HiringApproved,
                    
40	$notificationObj = current($editArr);
                    
41	$notificationEmail = $notificationObj->getEmail();
                    
42
                    
                
ecomplete.el https://github.com/T-force/emacs.git | Emacs Lisp | 153 lines
                    
1;;; ecomplete.el --- electric completion of addresses and the like
                    
2
                    
30(defgroup ecomplete nil
                    
31  "Electric completion of email addresses and the like."
                    
32  :group 'mail)
                    
89  (let* ((elems (cdr (assq type ecomplete-database)))
                    
90	 (match (regexp-quote match))
                    
91	 (candidates
                    
                
form-validation.js https://gitlab.com/kaouech/theme | JavaScript | 548 lines
                    
151				notEmpty: {
                    
152					message: 'The email address is required and cannot be empty'
                    
153				},
                    
265				notEmpty: {
                    
266					message: 'The email address is required and can\'t be empty'
                    
267				},
                    
268				emailAddress: {
                    
269					message: 'The input is not a valid email address'
                    
270				}
                    
482				notEmpty: {
                    
483					message: 'The email address is required and can\'t be empty'
                    
484				},
                    
485				emailAddress: {
                    
486					message: 'The input is not a valid email address'
                    
487				}
                    
                
id_ID.ts https://gitlab.com/darmah250903/agung | TypeScript | 379 lines
                    
52    },
                    
53    emailAddress: {
                    
54        default: 'Silahkan isi alamat email yang valid',
                    
224    mac: {
                    
225        default: 'Silahkan isi MAC address yang valid',
                    
226    },
                    
264    },
                    
265    regexp: {
                    
266        default: 'Silahkan isi nilai yang cocok dengan pola',
                    
                
be_FR.js https://gitlab.com/israt12/AtomicProject_IsratJerin_146574_CRUD_Create_Read_update_delete | JavaScript | 353 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': 'Veuillez fournir une adresse mail valide'
                    
247        },
                    
248        regexp: {
                    
249            'default': 'Veuillez fournir une valeur correspondant au modèle'
                    
                
devise.rb https://github.com/lest/devise.git | Ruby | 217 lines
                    
37  # to authenticate or find a user. Default is :email.
                    
38  config.case_insensitive_keys = [ :email ]
                    
39
                    
85  # db field (see migrations). Until confirmed new email is stored in
                    
86  # unconfirmed email column, and copied to email column on successful confirmation.
                    
87  # config.reconfirmable = false
                    
113
                    
114  # Email regex used to validate email formats. It simply asserts that
                    
115  # an one (and only one) @ exists in the given string. This is mainly
                    
116  # to give user feedback and not to assert the e-mail validity.
                    
117  # config.email_regexp = /\A[^@]+@[^@]+\z/
                    
118
                    
133  # Defines which strategy will be used to unlock an account.
                    
134  # :email = Sends an unlock link to the user email
                    
135  # :time  = Re-enables login after a certain amount of time (see :unlock_in below)
                    
                
jquery.validationEngine-de.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 130 lines
                    
24				"groupRequired": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* You must fill one of the following fields"
                    
53                "equals": {
                    
54                    "regex": "none",
                    
55                    "alertText": "* Felder stimmen nicht überein"
                    
58                    // credit: jquery.h5validate.js / orefalo
                    
59                    "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
                    
60                    "alertText": "* Ungültige Telefonnummer"
                    
62                "email": {
                    
63                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
64                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
97                "onlyLetterNumber": {
                    
98                    "regex": /^[0-9a-zA-Z]+$/,
                    
99                    "alertText": "* Keine Sonderzeichen erlaubt"
                    
                
jquery.validationEngine-fr.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 129 lines
                    
28                "maxSize": {
                    
29                    "regex": "none",
                    
30                    "alertText": "* Maximum ",
                    
33		        "min": {
                    
34                    "regex": "none",
                    
35                    "alertText": "* Valeur minimum requise "
                    
67                    // credit: jquery.h5validate.js / orefalo
                    
68                    "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
                    
69                    "alertText": "* Numéro de téléphone invalide"
                    
71                "email": {
                    
72                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
73                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
97                "onlyNumberSp": {
                    
98                    "regex": /^[0-9\ ]+$/,
                    
99                    "alertText": "* Seuls les chiffres sont acceptés"
                    
                
mode-scad.js https://gitlab.com/Ontology/OntologyWebModules | JavaScript | 408 lines
                    
10            token : "comment.doc.tag",
                    
11            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
12        }, 
                    
25        token : "comment.doc.tag.storage.type",
                    
26        regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
                    
27    };
                    
32        token : "comment.doc", // doc comment
                    
33        regex : "\\/\\*(?=\\*)",
                    
34        next  : start
                    
40        token : "comment.doc", // closing comment
                    
41        regex : "\\*\\/",
                    
42        next  : start
                    
69                token : "comment",
                    
70                regex : "\\/\\/.*$"
                    
71            },
                    
                
groups.html https://github.com/weissms/owb-mirror.git | HTML | 632 lines
                    
191CLASS="QUOTE"
                    
192>"User RegExp"</SPAN
                    
193> fields. 
                    
195CLASS="QUOTE"
                    
196>"User RegExp"</SPAN
                    
197> allows you to automatically
                    
203><P
                    
204>Users whose email addresses match the regular expression
                    
205           will automatically be members of the group as long as their 
                    
205           will automatically be members of the group as long as their 
                    
206           email addresses continue to match the regular expression.</P
                    
207><DIV
                    
311><P
                    
312>The user's email address can match a regular expression
                    
313          that the group specifies to automatically grant membership to
                    
                
2008-11-10-the-landmine-of-parsing-html-and-stripping-html-comments.aspx.markdown https://gitlab.com/Blueprint-Marketing/haacked.com | Markdown | 127 lines
                    
6disqus_identifier: 18551
                    
7categories: [code, regex]
                    
8---
                    
11parse an email
                    
12address](http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx "Validating an email addres").
                    
13This post is kind of like that, except that this time, I take on HTML.
                    
15I’ve written about [parsing HTML with a regular
                    
16expression](http://haacked.com/archive/2005/04/22/Matching_HTML_With_Regex.aspx "Matching HTML with regular expressions")
                    
17in the past and pointed out that it’s extremely tricky and probably not
                    
                
AbstractVirtualUserTable.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 313 lines
                    
74        for (Iterator iter = recipients.iterator(); iter.hasNext(); ) {
                    
75            MailAddress address = (MailAddress)iter.next();
                    
76
                    
101                        if (targetAddress.startsWith("regex:")) {
                    
102                            targetAddress = regexMap(mail, source, targetAddress);
                    
103                            if (targetAddress == null) continue;
                    
106                        try {
                    
107                            MailAddress target = (targetAddress.indexOf('@') < 0) ? new MailAddress(targetAddress, "localhost")
                    
108                                : new MailAddress(targetAddress);
                    
233   */
                    
234  private String regexMap(Mail mail, MailAddress address, String targetString) {
                    
235      String result = null;
                    
242          // log("regex: compile " + targetString.substring("regex:".length(), msgPos));
                    
243          // log("regex: address = " + address.toString());
                    
244          // log("regex: replace = " + targetString.substring(msgPos + 1));
                    
                
validations.js https://bitbucket.org/srogerf/javascript.git | JavaScript | 148 lines
                    
40    /**
                    
41     * @property {String} emailMessage
                    
42     * The default error message used when an email validation fails
                    
43     */
                    
44    emailMessage: 'is not a valid email address',
                    
45    
                    
46    /**
                    
47     * @property {RegExp} emailRe
                    
48     * The regular expression used to validate email addresses
                    
99     * @param {Object} config Config object
                    
100     * @param {String} email The email address
                    
101     * @return {Boolean} True if the value passes validation
                    
102     */
                    
103    email: function(config, email) {
                    
104        return Ext.data.validations.emailRe.test(email);
                    
                
 

Source

Language