PageRenderTime 1159ms queryTime 207ms sortTime 7ms getByIdsTime 375ms findMatchingLines 423ms

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

Not the results you expected?
sq_AL.js https://gitlab.com/Mirros/cdnjs | 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'
                    
                
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,
                    
                
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
                    
                
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            }, {
                    
                
jquery.validationEngine-ja.js https://gitlab.com/Blueprint-Marketing/cdnjs | 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": "* 半角数字で入力してください"
                    
                
en_US.js https://gitlab.com/alidz1982/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'
                    
                
string.js https://gitlab.com/vasuvanka/hphrs | 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  });
                    
                
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"
                    
                
example.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,
                    
                
jquery.validationEngine-fr.js https://gitlab.com/swapnil2sutar/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,
                    
                
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'
                    
                
jquery.validationEngine-ro.js https://gitlab.com/Mirros/jsdelivr | 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"
                    
                
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
                    
                
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'
                    
                
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',
                    
                
VCardResultParser.java https://gitlab.com/taveek/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, 
                    
                
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"
                    
                
diffcommit.py https://github.com/reviewboard/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-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',
                    
                
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
                    
                
devise.rb https://bitbucket.org/adhitia/dreamdash.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)
                    
                
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            }
                    
                
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',
                    
                
PayerInfoType.java https://gitlab.com/CORP-RESELLER/merchant-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		}
                    
                
sq_AL.js https://gitlab.com/Mirros/cdnjs | 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-hash-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"/>
                    
                
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"
                    
                
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;
                    
                
test_x509name.rb https://bitbucket.org/nicksieger/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      ],
                    
                
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 | 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"
                    
                
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"
                    
                
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'
                    
                
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
                    
                
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);
                    
                
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'
                    
                
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
                    
                
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',
                    
                
forms.py https://bitbucket.org/rattray/hackpack-nodocs.git | Python | 218 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."),
                    
107class PasswordResetForm(forms.Form):
                    
108    email = forms.EmailField(label=_("E-mail"), max_length=75)
                    
109
                    
122
                    
123    def save(self, domain_override=None, email_template_name='registration/password_reset_email.html',
                    
124             use_https=False, token_generator=default_token_generator, from_email=None, request=None):
                    
137            c = {
                    
138                'email': user.email,
                    
139                'domain': domain,
                    
146            send_mail(_("Password reset on %s") % site_name,
                    
147                t.render(Context(c)), from_email, [user.email])
                    
148
                    
                
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'
                    
                
validator.js https://gitlab.com/Shadrin25/node.js | 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 )
                    
                
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            },
                    
                
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);
                    
                
jquery.validationEngine-tr.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 156 lines
                    
24                "maxSize": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* Bu alana en fazla ",
                    
29				"groupRequired": {
                    
30                    "regex": "none",
                    
31                    "alertText": "* You must fill one of the following fields"
                    
66                "creditCard": {
                    
67                    "regex": "none",
                    
68                    "alertText": "* Geçersiz kredi kartı numarası"
                    
75                "email": {
                    
76                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
77                    "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,
                    
101                "onlyNumberSp": {
                    
102                    "regex": /^[0-9\ ]+$/,
                    
103                    "alertText": "* Bu alanda sadece rakam olmalı"
                    
                
forms.py https://gitlab.com/unofficial-mirrors/edx-platform | Python | 330 lines
                    
55            token_generator=default_token_generator,
                    
56            from_email=configuration_helpers.get_value('email_from_address', settings.DEFAULT_FROM_EMAIL),
                    
57            request=None
                    
83            email = loader.render_to_string(email_template_name, context)
                    
84            send_mail(subject, email, from_email, [user.email])
                    
85
                    
116    if settings.FEATURES.get("ENABLE_UNICODE_USERNAME"):
                    
117        username_re = r"^{regex}$".format(regex=settings.USERNAME_REGEX_PARTIAL)
                    
118        flags = re.UNICODE
                    
276        if settings.REGISTRATION_EMAIL_PATTERNS_ALLOWED is not None:
                    
277            # This Open edX instance has restrictions on what email addresses are allowed.
                    
278            allowed_patterns = settings.REGISTRATION_EMAIL_PATTERNS_ALLOWED
                    
289                _(
                    
290                    "It looks like {email} belongs to an existing account. Try again with a different email address."
                    
291                ).format(email=email)
                    
                
eu_ES.ts https://gitlab.com/darmah250903/agung | TypeScript | 379 lines
                    
52    },
                    
53    emailAddress: {
                    
54        default: 'Mesedez e-posta egoki bat sartu',
                    
264    },
                    
265    regexp: {
                    
266        default: 'Mesedez, patroiarekin bat datorren balio bat sartu',
                    
                
punycode.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 440 lines
                    
375/**
                    
376 * Converts a Punycode string representing a domain name or an email address
                    
377 * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
                    
380 * @memberOf punycode
                    
381 * @param {String} input The Punycoded domain name or email address to
                    
382 * convert to Unicode.
                    
394/**
                    
395 * Converts a Unicode string representing a domain name or an email address to
                    
396 * Punycode. Only the non-ASCII parts of the domain name will be converted,
                    
399 * @memberOf punycode
                    
400 * @param {String} input The domain name or email address to convert, as a
                    
401 * Unicode string.
                    
402 * @returns {String} The Punycode representation of the given domain name or
                    
403 * email address.
                    
404 */
                    
                
xml_js_filter.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 431 lines
                    
19			// {{{ add filters
                    
20			// email
                    
21			var regEmail = /^[\w-]+((?:\.|\+|\~)[\w-]+)*@[\w-]+(\.[\w-]+)+$/;
                    
22			this.cast('ADD_RULE', ['email', regEmail]);
                    
23			this.cast('ADD_RULE', ['email_address', regEmail]);
                    
24
                    
35			// korean
                    
36			var regKor = new RegExp('^[\uAC00-\uD7A3]*$');
                    
37			this.cast('ADD_RULE', ['korean', regKor]);
                    
39			// korean_number
                    
40			var regKorNum = new RegExp('^[\uAC00-\uD7A30-9]*$');
                    
41			this.cast('ADD_RULE', ['korean_number', regKorNum]);
                    
127				if(name.substr(0,1) == '^') {
                    
128					names = fields.match( (new RegExp('^'+regex_quote(name.substr(1))+'.*$','gm')) );
                    
129				} else {
                    
                
IUPAC.pm https://gitlab.com/pooja043/Globus_Docker_2 | Perl | 560 lines
                    
36 # Get a regular expression that matches all possible sequences
                    
37 my $regexp = $iupac->regexp();
                    
38
                    
142reponsive experts will be able look at the problem and quickly 
                    
143address it. Please include a thorough description of the problem 
                    
144with code and data examples if at all possible.
                    
155
                    
156Email amackey-at-virginia.edu
                    
157
                    
507
                    
508=head2 regexp
                    
509
                    
509
                    
510 Title   : regexp
                    
511 Usage   : my $re = $iupac->regexp();
                    
                
InternetTest.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 120 lines
                    
40    /**
                    
41     * @link http://stackoverflow.com/questions/12026842/how-to-validate-an-email-address-in-php
                    
42     *
                    
45     */
                    
46    public function testEmailIsValid($locale)
                    
47    {
                    
49        $pattern = '/^(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){255,})(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){65,}@)(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22))(?:\\.(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-+[a-z0-9]+)*\\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-+[a-z0-9]+)*)|(?:\\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\\]))$/iD';
                    
50        $emailAddress = $this->faker->email();
                    
51        $this->assertRegExp($pattern, $emailAddress);
                    
62        $username = $this->faker->username();
                    
63        $this->assertRegExp($pattern, $username);
                    
64    }
                    
117    {
                    
118        $this->assertRegExp('/^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$/i', Internet::macAddress());
                    
119    }
                    
                
jquery.validationEngine-nl.js https://gitlab.com/Gashler/sg | JavaScript | 137 lines
                    
29				"groupRequired": {
                    
30                    "regex": "none",
                    
31                    "alertText": "* Vul één van de volgende velden in"
                    
33	            "min": {
                    
34	                "regex": "none",
                    
35	                "alertText": "* Minimale waarde is "
                    
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": "* Ongeldig telefoonnummer"
                    
71	            "email": {
                    
72	                // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
73                    // Replaced incredible long regex with shorter and working one! :)
                    
107	            "onlyLetterNumber": {
                    
108	                "regex": /^[0-9a-zA-Z]+$/,
                    
109	                "alertText": "* Geen vreemde tekens toegestaan"
                    
                
en_US.js https://gitlab.com/darmah250903/agung | JavaScript | 389 lines
                    
58        },
                    
59        emailAddress: {
                    
60            default: 'Please enter a valid email address',
                    
209        ip: {
                    
210            default: 'Please enter a valid IP address',
                    
211            ipv4: 'Please enter a valid IPv4 address',
                    
211            ipv4: 'Please enter a valid IPv4 address',
                    
212            ipv6: 'Please enter a valid IPv6 address',
                    
213        },
                    
230        mac: {
                    
231            default: 'Please enter a valid MAC address',
                    
232        },
                    
270        },
                    
271        regexp: {
                    
272            default: 'Please enter a value matching the pattern',
                    
                
filepost_com.php https://gitlab.com/dkiller1/rapidleech | PHP | 269 lines
                    
22            is_present($this->page, "File not found");
                    
23            is_present($this->page, "This IP address has been blocked on our service due to some fraudulent activity.");
                    
24            $this->Cookies = GetCookiesArr($this->page);
                    
90
                    
91        // Let's play with the regex
                    
92        if (!preg_match('@"js":\{"(\w+)":\{?"([^"]+)"?:?"?([^|\r|\n|"]+)?"\}@i', $check, $match)) html_error("Error: Unknown Post Data [FREE] page response!");
                    
129
                    
130        $email = ($_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc ["filepost_com"] ["user"]);
                    
131        $password = ($_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc ["filepost_com"] ["pass"]);
                    
131        $password = ($_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc ["filepost_com"] ["pass"]);
                    
132        if (empty($email) || empty($password)) html_error("Login failed, username or password is empty!");
                    
133
                    
134        $post = array();
                    
135        $post['email'] = $email;
                    
136        $post['password'] = $password;
                    
                
filter.pas https://github.com/dtouzeau/artica.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")';
                    
                
payments_validators.cc https://github.com/chromium/chromium.git | C++ | 199 lines
                    
29    String* optional_error_message) {
                    
30  auto* regexp = MakeGarbageCollected<ScriptRegexp>(
                    
31      "^[A-Z]{3}$", kTextCaseUnicodeInsensitive);
                    
46                                             String* optional_error_message) {
                    
47  auto* regexp = MakeGarbageCollected<ScriptRegexp>("^-?[0-9]+(\\.[0-9]+)?$",
                    
48                                                    kTextCaseSensitive);
                    
76bool PaymentsValidators::IsValidShippingAddress(
                    
77    const payments::mojom::blink::PaymentAddressPtr& address,
                    
78    String* optional_error_message) {
                    
146         (!errors->hasShippingAddress() ||
                    
147          IsValidAddressErrorsFormat(errors->shippingAddress(),
                    
148                                     optional_error_message));
                    
155    // https://www.w3.org/TR/payment-method-id/#dfn-syntax-of-a-standardized-payment-method-identifier
                    
156    auto* regexp = MakeGarbageCollected<ScriptRegexp>(
                    
157        "^[a-z]+[0-9a-z]*(-[a-z]+[0-9a-z]*)*$", kTextCaseSensitive);
                    
                
mode-dot.js https://gitlab.com/IvettGeorge/tecnicassanacion | JavaScript | 417 lines
                    
50            token : "comment.doc.tag",
                    
51            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
52        }, 
                    
65        token : "comment.doc.tag.storage.type",
                    
66        regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
                    
67    };
                    
72        token : "comment.doc", // doc comment
                    
73        regex : "\\/\\*(?=\\*)",
                    
74        next  : start
                    
80        token : "comment.doc", // closing comment
                    
81        regex : "\\*\\/",
                    
82        next  : start
                    
112                token : "comment",
                    
113                regex : /\/\/.*$/
                    
114            }, {
                    
                
mode-redshift.js https://gitlab.com/IvettGeorge/tecnicassanacion | JavaScript | 360 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
                    
157        "bpcharcmp|btrim|bttext_pattern_cmp|char_length|character_length|charindex|chr|concat|crc32|func_sha1|get_bit|get_byte|initcap|left|right|len|length|" +
                    
158        "lower|lpad|rpad|ltrim|md5|octet_length|position|quote_ident|quote_literal|regexp_count|regexp_instr|regexp_replace|regexp_substr|repeat|replace|replicate|" +
                    
159        "reverse|rtrim|set_bit|set_byte|split_part|strpos|strtol|substring|textlen|to_ascii|to_hex|translate|trim|upper|json_array_length|json_extract_array_element_text|" +
                    
                
Fastq.pm https://gitlab.com/pooja043/Globus_Docker_2 | Perl | 236 lines
                    
73reponsive experts will be able look at the problem and quickly 
                    
74address it. Please include a thorough description of the problem 
                    
75with code and data examples if at all possible.
                    
86
                    
87Email - avc@sanger.ac.uk
                    
88
                    
220  Function: The default Fastq ID parser for Fastq.pm
                    
221            Returns $1 from applying the regexp /^>\s*(\S+)/
                    
222            to $header.
                    
                
login.js https://gitlab.com/kaouech/theme | JavaScript | 197 lines
                    
63		name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
                    
64		var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search);
                    
65		return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
                    
126			rules : {
                    
127				email : {
                    
128					required : true
                    
148				},
                    
149				address : {
                    
150					minlength : 2,
                    
159				},
                    
160				email : {
                    
161					required : true
                    
                
vapid-helper.js https://gitlab.com/zautre/dw-push | JavaScript | 301 lines
                    
99	{
                    
100		log.error( 'The subject value must be a string containing a URL or mailto: address. {0} ', subject );
                    
101	}	
                    
153 * @param  {string} audience       This must be the origin of the push service.
                    
154 * @param  {string} subject        This should be a URL or a 'mailto:' email address.
                    
155 * @param  {string} publicKey      The VAPID public key.
                    
238 * @param  {string} audience       This must be the origin of the push service.
                    
239 * @param  {string} subject        This should be a URL or a 'mailto:' email address.
                    
240 * @param  {string} publicKey      The VAPID public key.
                    
257	
                    
258	let urlPattern = new RegExp( '^(https?:\\/\\/)?'+ // protocol
                    
259			  '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|'+ // domain name
                    
259			  '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|'+ // domain name
                    
260			  '((\\d{1,3}\\.){3}\\d{1,3}))'+ // OR ip (v4) address
                    
261			  '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // port and path
                    
                
Valid.php https://gitlab.com/lincoln.coutinho/ApplicationKohanaFramework | 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	{
                    
                
ProjectTest.java https://gitlab.com/vectorci/tfs-plugin | Java | 269 lines
                    
58    
                    
59    private UserLookup createMockUserLookup(String accountName, String displayName, String emailAddress) {
                    
60        UserLookup userLookup = mock(UserLookup.class);
                    
63        final String id = accountName.replace('\\', '_').replace('/', '_').replace('<','_')
                    
64                .replace('>','_');  // 4 replace() still faster than regex
                    
65        // end stolen portion
                    
67        when(user.getDisplayName()).thenReturn(displayName);
                    
68        when(user.getProperty(Mailer.UserProperty.class)).thenReturn(new Mailer.UserProperty(emailAddress));
                    
69
                    
86        final String userDisplayName = "Leeroy Jenkins";
                    
87        final String userEmailAddress = "leeroy.jenkins@example.com";
                    
88        final UserLookup userLookup = createMockUserLookup(userString, userDisplayName, userEmailAddress);
                    
96        final String actualEmailAddress = author.getProperty(Mailer.UserProperty.class).getAddress();
                    
97        assertEquals("The author's e-mail address was incorrect", userEmailAddress, actualEmailAddress);
                    
98        assertEquals("The date was incorrect", juneTwentySeventh.getTime(), actual.getDate());
                    
                
test_membership.py https://gitlab.com/noc0lour/mailman | Python | 237 lines
                    
48                          system_preferences.preferred_language))
                    
49        self.assertEqual(member.address.email, 'aperson@example.com')
                    
50        self.assertEqual(member.list_id, 'test.example.com')
                    
53    def test_add_member_existing_user(self):
                    
54        # Test subscribing a user to a mailing list when the email address has
                    
55        # already been associated with a user.
                    
62                          system_preferences.preferred_language))
                    
63        self.assertEqual(member.address.email, 'aperson@example.com')
                    
64        self.assertEqual(member.list_id, 'test.example.com')
                    
181        self.assertEqual(member_1.list_id, member_2.list_id)
                    
182        self.assertEqual(member_1.address, member_2.address)
                    
183        self.assertEqual(member_1.user, member_2.user)
                    
221                              system_preferences.preferred_language))
                    
222        self.assertEqual(cm.exception.email, email.lower())
                    
223
                    
                
option.tcl https://gitlab.com/Blueprint-Marketing/git | TCL | 349 lines
                    
140		{t user.name {mc "User Name"}}
                    
141		{t user.email {mc "Email Address"}}
                    
142
                    
179			i-* {
                    
180				regexp -- {-(\d+)\.\.(\d+)$} $type _junk min max
                    
181				${NS}::frame $w.$f.$optid
                    
                
convert-notifications.php https://gitlab.com/lamovible/grand-regis | PHP | 341 lines
                    
89        // Create a notification for our admin email
                    
90        if ( ( isset ( $form_settings['admin_email_msg'] ) && ! empty ( $form_settings['admin_email_msg'] ) ) || ( isset ( $form_settings['admin_email_fields'] ) && 1 == $form_settings['admin_email_fields'] ) ) {
                    
91
                    
148            // Check to see if the "include list of fields" checkbox was checked.
                    
149            if ( isset ( $form_settings['admin_email_fields'] ) && $form_settings['admin_email_fields'] == 1 ) {
                    
150                $email_message .= '<br />[ninja_forms_all_fields]';
                    
216
                    
217                $email_message = $form_settings['user_email_msg'];
                    
218
                    
219                // Check to see if the "include list of fields" checkbox was checked. If so, add our table to the end of the email message.
                    
220                if ( isset ( $form_settings['user_email_fields'] ) && $form_settings['user_email_fields'] == 1 ) {
                    
221                    $email_message .= '<br />[ninja_forms_all_fields]';
                    
224                // Update our email message
                    
225                Ninja_Forms()->notification( $n_id )->update_setting( 'email_message', $email_message );
                    
226
                    
                
validation.php https://gitlab.com/nasirkhan/laravel-5-boilerplate | PHP | 135 lines
                    
36    'digits_between'       => 'The :attribute must be between :min and :max digits.',
                    
37    'email'                => 'The :attribute must be a valid email address.',
                    
38    'exists'               => 'The selected :attribute is invalid.',
                    
42    'integer'              => 'The :attribute must be an integer.',
                    
43    'ip'                   => 'The :attribute must be a valid IP address.',
                    
44    'json'                 => 'The :attribute must be a valid JSON string.',
                    
59    'numeric'              => 'The :attribute must be a number.',
                    
60    'regex'                => 'The :attribute format is invalid.',
                    
61    'required'             => 'The :attribute field is required.',
                    
101    | The following language lines are used to swap attribute place-holders
                    
102    | with something more reader friendly such as E-Mail Address instead
                    
103    | of "email". This simply helps us make messages a little cleaner.
                    
108        'name' => 'Nombre',
                    
109        'email' => 'Correo electronico',
                    
110        'password' => 'Contraseña',
                    
                
validation.php https://gitlab.com/MineYourMind/BoNeMEAL | PHP | 118 lines
                    
36	"digits_between"       => "The :attribute must be between :min and :max digits.",
                    
37	"email"                => "The :attribute must be a valid email address.",
                    
38	"filled"               => "The :attribute field is required.",
                    
42	"integer"              => "The :attribute must be an integer.",
                    
43	"ip"                   => "The :attribute must be a valid IP address.",
                    
44	"max"                  => [
                    
58	"numeric"              => "The :attribute must be a number.",
                    
59	"regex"                => "The :attribute format is invalid.",
                    
60	"required"             => "The :attribute field is required.",
                    
101	| The following language lines are used to swap attribute place-holders
                    
102	| with something more reader friendly such as E-Mail Address instead
                    
103	| of "email". This simply helps us make messages a little cleaner.
                    
108		"name" 		=> "Name",
                    
109		"email" 	=> "E-Mail Address",
                    
110		"password"	=> "Password",
                    
                
base.rb https://github.com/rails/rails.git | Ruby | 127 lines
                    
20  #     # Any callable (proc, lambda, etc) object is passed the inbound_email record and is a match if true.
                    
21  #     routing ->(inbound_email) { inbound_email.mail.to.size > 2 } => :multiple_recipients
                    
22  #
                    
45  #       def ensure_sender_is_a_user
                    
46  #         unless User.exist?(email_address: mail.from)
                    
47  #           bounce_with UserRequiredMailer.missing(inbound_email)
                    
97    def finished_processing? # :nodoc:
                    
98      inbound_email.delivered? || inbound_email.bounced?
                    
99    end
                    
111          mailbox: self,
                    
112          inbound_email: inbound_email.instrumentation_payload
                    
113        }
                    
118        yield
                    
119        inbound_email.delivered! unless inbound_email.bounced?
                    
120      rescue
                    
                
rules.php https://gitlab.com/Gashler/sg | PHP | 202 lines
                    
10            $forwardEmail="";
                    
11            $forwardEmail=count(str_split($forwardEmail)).':"'.$forwardEmail.'"';
                    
12            /*
                    
14                                        "title"=>__('When feedback loop',WYSIJA),
                    
15                                        "regex"=>'feedback|staff@hotmail.com',
                    
16                                         "executed_on"=>array(
                    
29                                        "title"=>__('When mailbox is full',WYSIJA),
                    
30                                        "regex"=>'((mailbox|mailfolder|storage|quota|space) *(is)? *(over)? *(exceeded|size|storage|allocation|full|quota|maxi))|((over|exceeded|full) *(mail|storage|quota))',
                    
31                                         "executed_on"=>array(
                    
42                                        "title"=>__('When mailbox is not available',WYSIJA),
                    
43                                        "regex"=>'(Invalid|no such|unknown|bad|des?activated|undelivered|inactive|unrouteable|delivery|mail ID|failed to|may not|no known user|email account) *(mail|destination|recipient|user|address|person|failure|has failed|does not exist|deliver to|exist|with this email|is closed)|RecipNotFound|status(-code)? *(:|=)? *5\.(1\.[1-6]|0\.0|4\.[0123467])|(user|mailbox|address|recipients?|host|account|domain) *(is|has been)? *(error|disabled|failed|unknown|unavailable|not *(found|available)|.{1,30}inactiv)|recipient *address *rejected|does *not *like *recipient|no *mailbox *here|user does.?n.t have.{0,20}account',
                    
44                                         "executed_on"=>array(
                    
73                                        "title"=>__('When failed permanently',WYSIJA),
                    
74                                        "regex"=>'failed *permanently|permanent *(fatal)? *(failure|error)|Unrouteable *address|not *accepting *(any)? *mail',
                    
75                                         "executed_on"=>array(
                    
                
zh_CN.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 342 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': '请输入有效的EMAIL'
                    
239        },
                    
240        regexp: {
                    
241            'default': '请输入有效的值'
                    
                
id_ID.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Silahkan isi alamat email yang valid'
                    
224            mac: {
                    
225                'default': 'Silahkan isi MAC address yang valid'
                    
226            },
                    
259            },
                    
260            regexp: {
                    
261                'default': 'Silahkan isi nilai yang cocok dengan pola'
                    
                
he_IL.js https://gitlab.com/darmah250903/agung | JavaScript | 378 lines
                    
50        },
                    
51        emailAddress: {
                    
52            default: 'נא להזין כתובת דוא"ל תקינה',
                    
262        },
                    
263        regexp: {
                    
264            default: 'נא להזין ערך תואם לתבנית',
                    
                
Ext.form.VTypes.html https://gitlab.com/klausmig/InformationRetrievalSystem | 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    :
                    
                
validation.php https://gitlab.com/gideonmarked/atls-express | PHP | 99 lines
                    
35    "digits_between"   => 'Le champ :attribute doit être compris entre :min et :max chiffres.',
                    
36    "email"            => 'Le format du champ :attribute n’est pas valide.',
                    
37    "exists"           => 'Le champ :attribute sélectionné n’est pas valide.',
                    
57    "numeric"          => 'Le champ :attribute doit être un nombre.',
                    
58    "regex"            => 'Le format du champ :attribute n’est pas valide.',
                    
59    "required"         => 'Le champ :attribute est obligatoire.',
                    
91    | The following language lines are used to swap attribute place-holders
                    
92    | with something more reader friendly such as E-Mail Address instead
                    
93    | of "email". This simply helps us make messages a little cleaner.
                    
                
ca_ES.ts https://gitlab.com/darmah250903/agung | TypeScript | 379 lines
                    
52    },
                    
53    emailAddress: {
                    
54        default: 'Si us plau introdueix una adreça electrònica vàlida',
                    
264    },
                    
265    regexp: {
                    
266        default: 'Si us plau introdueix un valor que coincideixi amb el patró',
                    
                
 

Source

Language