PageRenderTime 456ms queryTime 44ms sortTime 6ms getByIdsTime 59ms findMatchingLines 160ms

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

Not the results you expected?
jquery.validationEngine-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 179 lines
                    
35                "maxSize": {
                    
36                    "regex": "none",
                    
37                    "alertText": "* Maximum ",
                    
40				"groupRequired": {
                    
41                    "regex": "none",
                    
42                    "alertText": "* You must fill one of the following fields"
                    
74                "creditCard": {
                    
75                    "regex": "none",
                    
76                    "alertText": "* Invalid credit card number"
                    
83                "email": {
                    
84                    // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#    e-mail-state-%28type=email%29 )
                    
85                    "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
                    
85                    "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
                    
86                    "alertText": "* Invalid email address"
                    
87                },
                    
                
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'
                    
                
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)))
                    
                
string.js https://gitlab.com/thomasphillips3/beerlocker | JavaScript | 506 lines
                    
124 *     var M = db.model('M', s);
                    
125 *     var m = new M({ email: 'SomeEmail@example.COM' });
                    
126 *     console.log(m.email) // someemail@example.com
                    
205 *     var schema = new Schema({ postalCode: { type: String, minlength: 5 })
                    
206 *     var Address = db.model('Address', schema)
                    
207 *     var address = new Address({ postalCode: '9512' })
                    
259 *     var schema = new Schema({ postalCode: { type: String, maxlength: 9 })
                    
260 *     var Address = db.model('Address', schema)
                    
261 *     var address = new Address({ postalCode: '9512512345' })
                    
338 *
                    
339 * @param {RegExp} regExp regular expression to test against
                    
340 * @param {String} [message] optional custom error message
                    
365    type: 'regexp',
                    
366    regexp: regExp
                    
367  });
                    
                
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/Mirros/cdnjs | JavaScript | 370 lines
                    
49        },
                    
50        emailAddress: {
                    
51            'default': 'Please enter a valid email address'
                    
201        ip: {
                    
202            'default': 'Please enter a valid IP address',
                    
203            ipv4: 'Please enter a valid IPv4 address',
                    
203            ipv4: 'Please enter a valid IPv4 address',
                    
204            ipv6: 'Please enter a valid IPv6 address'
                    
205        },
                    
222        mac: {
                    
223            'default': 'Please enter a valid MAC address'
                    
224        },
                    
256        },
                    
257        regexp: {
                    
258            'default': 'Please enter a value matching the pattern'
                    
                
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                    }
                    
                
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'
                    
                
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,
                    
                
jquery.validationEngine-ro.js https://gitlab.com/Mirros/cdnjs | JavaScript | 177 lines
                    
25                "dateTimeRange": {
                    
26                    "regex": "none",
                    
27                    "alertText": "* Intervalul de timp ",
                    
30                "minSize": {
                    
31                    "regex": "none",
                    
32                    "alertText": "* Sunt permise cel putin ",
                    
74                "creditCard": {
                    
75                    "regex": "none",
                    
76                    "alertText": "* Nevalid num?rul de card de credit"
                    
83                "email": {
                    
84                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
85                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
117                "onlyLetterNumber": {
                    
118                    "regex": /^[0-9a-zA-Z]+$/,
                    
119                    "alertText": "* Trebuie sa folosesti doar litere si numere intregi"
                    
                
sr_RS.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Molimo da unesete važeću e-mail adresu'
                    
259            },
                    
260            regexp: {
                    
261                'default': 'Molimo da unesete vrednost koja se poklapa sa paternom'
                    
                
ro_RO.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Te rog sa introduci o adresa de email valide'
                    
259            },
                    
260            regexp: {
                    
261                'default': 'Te rog sa introduci o valoare in formatul'
                    
                
es_CL.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Por favor ingrese un email válido'
                    
259            },
                    
260            regexp: {
                    
261                'default': 'Por favor ingrese un valor que coincida con el patrón'
                    
                
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"
                    
                
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
                    
                
miq_provision_redhat_dialogs_clone_to_template.yaml https://gitlab.com/miq-chargeback/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
                    
                
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/Blueprint-Marketing/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	 */
                    
                
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": "* 无效的日期或时间格式",
                    
                
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"
                    
                
emailaddress.js https://gitlab.com/sc15lar/algorithmsproject | JavaScript | 495 lines
                    
149goog.format.EmailAddress.LOCAL_PART_ =
                    
150    new RegExp('^' + goog.format.EmailAddress.LOCAL_PART_REGEXP_STR_ + '$');
                    
151
                    
157goog.format.EmailAddress.DOMAIN_PART_ =
                    
158    new RegExp('^' + goog.format.EmailAddress.DOMAIN_PART_REGEXP_STR_ + '$');
                    
159
                    
164 */
                    
165goog.format.EmailAddress.EMAIL_ADDRESS_ = new RegExp(
                    
166    '^' + goog.format.EmailAddress.LOCAL_PART_REGEXP_STR_ + '@' +
                    
204 */
                    
205goog.format.EmailAddress.prototype.setAddress = function(address) {
                    
206  this.address = address;
                    
284 * Checks if the provided string is a valid email address. Supports both
                    
285 * simple email addresses (address specs) and addresses that contain display
                    
286 * names.
                    
                
jquery.validationEngine-de.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 134 lines
                    
19                "maxSize": {
                    
20                    "regex": "none",
                    
21                    "alertText": "* Maximal ",
                    
24				"groupRequired": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* You must fill one of the following fields"
                    
57                "creditCard": {
                    
58                    "regex": "none",
                    
59                    "alertText": "* Ungültige Kreditkartennummer"
                    
66                "email": {
                    
67                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
68                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
93                "onlyLetterSp": {
                    
94	                 "regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
                    
95                     "alertText": "* Nur Buchstaben erlaubt"
                    
                
jquery.validationEngine-de.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 135 lines
                    
29				"groupRequired": {
                    
30                    "regex": "none",
                    
31                    "alertText": "* Sie müssen mindestens eines dieser Felder ausfüllen"
                    
58                "equals": {
                    
59                    "regex": "none",
                    
60                    "alertText": "* Felder stimmen nicht überein"
                    
62                "creditCard": {
                    
63                    "regex": "none",
                    
64                    "alertText": "* Ungültige Kreditkartennummer"
                    
71                "email": {
                    
72                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
73                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
                    
102				"onlyLetterNumber": {
                    
103					"regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/,
                    
104					"alertText": "* Keine Sonderzeichen erlaubt"
                    
                
collapse.html https://gitlab.com/x33n/formvalidation | HTML | 264 lines
                    
37                                    <div class="form-group">
                    
38                                        <label class="col-lg-3 control-label">Email address</label>
                    
39                                        <div class="col-lg-5">
                    
39                                        <div class="col-lg-5">
                    
40                                            <input type="text" class="form-control" name="email" />
                    
41                                        </div>
                    
170                    },
                    
171                    regexp: {
                    
172                        regexp: /^[A-Z\s]+$/i,
                    
185                    },
                    
186                    regexp: {
                    
187                        regexp: /^[A-Z\s]+$/i,
                    
210                validators: {
                    
211                    emailAddress: {
                    
212                        message: 'The input is not a valid email address'
                    
                
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
                    
                
en_US.js https://gitlab.com/Mirros/jsdelivr | 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'
                    
                
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'
                    
                
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'
                    
                
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				}
                    
                
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            },
                    
                
fr_BE.js https://gitlab.com/augustocbx/grimes | 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'
                    
                
admin_users_spec.rb https://gitlab.com/solidnerd/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
                    
                
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));
                    
                
mode-golang.js https://gitlab.com/Ontology/OntologyWebModules | 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-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ı"
                    
                
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 {
                    
                
test_membership.py https://gitlab.com/khushbuparakh/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',
                    
                
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
                    
                
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	{
                    
                
es_ES.js https://gitlab.com/Mirros/cdnjs | JavaScript | 357 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': 'Por favor introduce un email válido'
                    
249        },
                    
250        regexp: {
                    
251            'default': 'Por favor introduce un valor que coincida con el patrón'
                    
                
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
                    
                
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',
                    
                
zh_CN.js https://gitlab.com/Mirros/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'
                    
                
jquery.validationEngine-ja.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 139 lines
                    
29                "maxSize": {
                    
30                    "regex": "none",
                    
31                    "alertText": "* ",
                    
63                "equals": {
                    
64                    "regex": "none",
                    
65                    "alertText": "* 入力された値が一致しません"
                    
68                    // credit: jquery.h5validate.js / orefalo
                    
69                    "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
                    
70                    "alertText": "* 電話番号が正しくありません"
                    
72                "email": {
                    
73                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
74                    "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,
                    
106                "onlyLetterNumber": {
                    
107                    "regex": /^[0-9a-zA-Z]+$/,
                    
108                    "alertText": "* 半角英数で入力してください"
                    
                
mirc.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 190 lines
                    
20  var specials = parseWords("$! $$ $& $? $+ $abook $abs $active $activecid " +
                    
21                            "$activewid $address $addtok $agent $agentname $agentstat $agentver " +
                    
22                            "$alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime " +
                    
29                            "$deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll " +
                    
30                            "$dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error " +
                    
31                            "$eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir " +
                    
32                            "$finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve " +
                    
33                            "$fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt " +
                    
34                            "$group $halted $hash $height $hfind $hget $highlight $hnick $hotline " +
                    
40                            "$lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer " +
                    
41                            "$maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext " +
                    
42                            "$menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode " +
                    
46                            "$pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo " +
                    
47                            "$readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex " +
                    
48                            "$reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline " +
                    
                
formats.js https://gitlab.com/blocknotary/IonicInterviews | JavaScript | 164 lines
                    
38  // email (sources from jsen validator):
                    
39  // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
                    
40  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')
                    
40  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')
                    
41  email: /^[a-z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
                    
42  hostname: HOSTNAME,
                    
46  ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
                    
47  regex: regex,
                    
48  // uuid: http://tools.ietf.org/html/rfc4122
                    
66  ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
                    
67  regex: regex,
                    
68  uuid: UUID,
                    
120function uri(str) {
                    
121  // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "."
                    
122  return NOT_URI_FRAGMENT.test(str) && URI.test(str);
                    
                
command.py https://gitlab.com/noc0lour/mailman | Python | 234 lines
                    
30from email.header import decode_header, make_header
                    
31from email.iterators import typed_subpart_iterator
                    
32from io import StringIO
                    
36from mailman.core.runner import Runner
                    
37from mailman.email.message import UserNotification
                    
38from mailman.interfaces.command import ContinueProcessing, IEmailResults
                    
58        # to the -request address.
                    
59        subaddress = msgdata.get('subaddress')
                    
60        if subaddress == 'join':
                    
61            self.command_lines.append('join')
                    
62        elif subaddress == 'leave':
                    
63            self.command_lines.append('leave')
                    
154            log.info('%s Precedence: %s message discarded by: %s',
                    
155                     message_id, precedence, mlist.request_address)
                    
156            return False
                    
                
es_ES.js https://gitlab.com/x33n/formvalidation | JavaScript | 379 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Por favor introduce un email válido'
                    
262            },
                    
263            regexp: {
                    
264                'default': 'Por favor introduce un valor que coincida con el patrón'
                    
                
attribute.html https://gitlab.com/x33n/formvalidation | HTML | 215 lines
                    
44                                   required data-fv-notempty-message="The username is required and cannot be empty"
                    
45                                   pattern="^[a-zA-Z0-9]+$" data-fv-regexp-message="The username can only consist of alphabetical and digits"
                    
46                                   data-fv-stringlength="true" data-fv-stringlength-min="6" data-fv-stringlength-max="30" data-fv-stringlength-message="The username must be more than 6 and less than 30 characters long"
                    
51                    <div class="form-group">
                    
52                        <label class="col-lg-3 control-label">Email address</label>
                    
53                        <div class="col-lg-5">
                    
53                        <div class="col-lg-5">
                    
54                            <input class="form-control" name="email" type="email" data-fv-emailaddress-message="The input is not a valid email address" />
                    
55                        </div>
                    
                
jquery.validationEngine-es.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
                    
19				"groupRequired": {
                    
20                    "regex": "none",
                    
21                    "alertText": "* Debe de rellenar al menos uno de los siguientes campos"
                    
23                "maxSize": {
                    
24                    "regex": "none",
                    
25                    "alertText": "* Máximo de ",
                    
57                "creditCard": {
                    
58                    "regex": "none",
                    
59                    "alertText": "* La tarjeta de crédito no es válida"
                    
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"
                    
                
validation.php https://gitlab.com/ghaffargebe/bigg | PHP | 110 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.',
                    
102    | The following language lines are used to swap attribute place-holders
                    
103    | with something more reader friendly such as E-Mail Address instead
                    
104    | of "email". This simply helps us make messages a little cleaner.
                    
                
ValidateThanhVien.php https://gitlab.com/devtoannh/cafe | PHP | 333 lines
                    
26			$validator->addValidator(new Zend_Validate_NotEmpty(),true)
                    
27						->addValidator(new Zend_Validate_EmailAddress(),true)
                    
28						->addValidator(new Zend_Validate_Db_NoRecordExists($options),true);
                    
41						->addValidator(new Zend_Validate_StringLength(6,32),true)
                    
42						->addValidator(new Zend_Validate_Regex('#^[a-zA-Z0-9@\#\$%\^&\*\-\+]+$#'),true);
                    
43			if(!$validator->isValid($arrParam['password'])){
                    
139						->addValidator(new Zend_Validate_StringLength(6,32),true)
                    
140						->addValidator(new Zend_Validate_Regex('#^[a-zA-Z0-9@\#\$%\^&\*\-\+]+$#'),true);
                    
141			if(!$validator->isValid($arrParam['password'])){
                    
171			$validator	-> addValidator(new Zend_Validate_NotEmpty(),true)
                    
172						-> addValidator(new Zend_Validate_EmailAddress(),true)
                    
173						-> addValidator(new Zend_Validate_Db_RecordExists($options),true);
                    
206			}else{
                    
207				$clause = " user_name = '" . $arrParam['email'] . "'";
                    
208				$options 	= array('table'=>'users','field'=>'passmoi','exclude'=>$clause);
                    
                
jquery.validationEngine-fa.js https://gitlab.com/Mirros/cdnjs | JavaScript | 181 lines
                    
25                "dateTimeRange": {
                    
26                    "regex": "none",
                    
27                    "alertText": "* بازه‌ی زمانی",
                    
30                "minSize": {
                    
31                    "regex": "none",
                    
32                    "alertText": "* حداقل ",
                    
76                "creditCard": {
                    
77                    "regex": "none",
                    
78                    "alertText": "شماره کارت اعتباری اشتباه"
                    
85                "email": {
                    
86                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
87                    "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,
                    
119                "onlyLetterNumber": {
                    
120                    "regex": /^[0-9a-zA-Z]+$/,
                    
121                    "alertText": "* فقط اعداد و حروف انگلیسی وارد کنید"
                    
                
common.py https://gitlab.com/gregtyka/frankenserver | Python | 148 lines
                    
38        if 'HTTP_USER_AGENT' in request.META:
                    
39            for user_agent_regex in settings.DISALLOWED_USER_AGENTS:
                    
40                if user_agent_regex.search(request.META['HTTP_USER_AGENT']):
                    
82    def process_response(self, request, response):
                    
83        "Send broken link emails and calculate the Etag, if needed."
                    
84        if response.status_code == 404:
                    
84        if response.status_code == 404:
                    
85            if settings.SEND_BROKEN_LINK_EMAILS and not settings.DEBUG:
                    
86                # If the referrer was from an internal link or a non-search-engine site,
                    
95                    mail_managers("Broken %slink on %s" % ((is_internal and 'INTERNAL ' or ''), domain),
                    
96                        "Referrer: %s\nRequested URL: %s\nUser agent: %s\nIP address: %s\n" \
                    
97                                  % (referer, request.get_full_path(), ua, ip),
                    
                
EntityInfoModel.java https://gitlab.com/pallavi-zade/NobleMkt | Java | 428 lines
                    
208	public void setMailingAddress(String mailingAddress) {
                    
209		this.mailingAddress = mailingAddress;
                    
210	}
                    
338	public void setTransferCallbackEmail(String transferCallbackEmail) {
                    
339		this.transferCallbackEmail = transferCallbackEmail;
                    
340	}
                    
411				+ ", hqStreetAddress2=" + hqStreetAddress2 + ", hqCountry=" + hqCountryName + ", hqstate=" + hqstate
                    
412				+ ", hqCity=" + hqCity + ", hqZip=" + hqZip + ", mailingAddress=" + mailingAddress
                    
413				+ ", mailingStreetAddress2=" + mailingStreetAddress2 + ", mailingCountry=" + mailingCountryName
                    
415				+ ", fax=" + fax + ", phone=" + phone + ", alternatePhone=" + alternatePhone + ", website=" + website
                    
416				+ ", email=" + email + ", jurisdiction=" + jurisdiction + ", reportsEmail=" + reportsEmail
                    
417				+ ", trademarkName=" + trademarkName + ", transferCallbackPhone=" + transferCallbackPhone
                    
417				+ ", trademarkName=" + trademarkName + ", transferCallbackPhone=" + transferCallbackPhone
                    
418				+ ", transferCallbackEmail=" + transferCallbackEmail + ", registeredAddress1=" + registeredAddress1
                    
419				+ ", registeredAddress2=" + registeredAddress2 + ", registeredCity=" + registeredCity
                    
                
locale-en_AU-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 388 lines
                    
60
                    
61Ext.define("Ext.locale.en_AU.data.validator.Email", {
                    
62    override: "Ext.data.validator.Email",
                    
62    override: "Ext.data.validator.Email",
                    
63    message: "Is not a valid email address"
                    
64});
                    
165    blankText: "This field is required",
                    
166    regexText: "",
                    
167    emptyText: null
                    
199    override: "Ext.form.field.VTypes",
                    
200    emailText: 'This field should be an e-mail address in the format "user@example.com"',
                    
201    urlText: 'This field should be a URL in the format "http:/' + '/www.example.com"',
                    
                
it_IT.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 379 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Si prega di inserire un indirizzo email valido'
                    
204            ip: {
                    
205                'default': 'Please enter a valid IP address',
                    
206                ipv4: 'Si prega di inserire un indirizzo IPv4 valido',
                    
225            mac: {
                    
226                'default': 'Si prega di inserire un valido MAC address'
                    
227            },
                    
262            },
                    
263            regexp: {
                    
264                'default': 'Inserisci un valore che corrisponde al modello'
                    
                
validation.php https://gitlab.com/nasirkhan/laravel-5-boilerplate | PHP | 135 lines
                    
36    'digits_between'       => 'Le champ :attribute doit avoir entre :min et :max chiffres.',
                    
37    'email'                => 'Le champ :attribute doit être une adresse e-mail valide.',
                    
38    'exists'               => 'Le champ :attribute existe déjà.',
                    
59    'numeric'              => 'Le champ :attribute doit être un nombre.',
                    
60    'regex'                => 'Le format du champ :attribute est invalide.',
                    
61    'required'             => 'Le champ :attribute est obligatoire.',
                    
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' => 'Nom',
                    
109        'email' => 'E-mail',
                    
110        'password' => 'Mot de passe',
                    
119        'confirmed' => 'Confirmé',
                    
120        'send_confirmation_email' => 'Envoyer un e-mail de confirmation',
                    
121        'associated_roles' => 'Rôles associés',
                    
                
validator.js https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | 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 )
                    
                
forms.py https://gitlab.com/gregtyka/ka-lite | Python | 358 lines
                    
70    #Changed to modify username length from 30 to 75 (matching email addresses)
                    
71    username = forms.RegexField(label=_("Username"), max_length=75,  # KA-LITE-MOD (using email addr for username)
                    
72        regex=r'^[\w.@+-]+$',
                    
212    }
                    
213    email = forms.EmailField(label=_("Email"), max_length=254)
                    
214
                    
216        """
                    
217        Validates that an active user exists with the given email address.
                    
218        """
                    
219        UserModel = get_user_model()
                    
220        email = self.cleaned_data["email"]
                    
221        self.users_cache = UserModel._default_manager.filter(email__iexact=email)
                    
261            email = loader.render_to_string(email_template_name, c)
                    
262            send_mail(subject, email, from_email, [user.email])
                    
263
                    
                
pt_PT.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Por favor insira um email válido'
                    
259            },
                    
260            regexp: {
                    
261                'default': 'Por favor insira um valor correspondente ao padrão'
                    
                
fa_IR.js https://gitlab.com/Mirros/cdnjs | JavaScript | 357 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': 'لطفا آدرس ایمیل معتبر وارد فرمایید'
                    
216        mac: {
                    
217            'default': 'لطفا یک MAC address معتبر وارد فرمایید'
                    
218        },
                    
249        },
                    
250        regexp: {
                    
251            'default': 'لطفا یک مقدار مطابق با الگو وارد فرمایید'
                    
                
ValidateUser.php https://gitlab.com/devtoannh/cafe | PHP | 195 lines
                    
25					->addValidator(new Zend_Validate_StringLength(3,32),true)
                    
26					->addValidator(new Zend_Validate_Regex('#^[a-zA-Z0-9_\.]+$#'),true)
                    
27					->addValidator(new Zend_Validate_Db_NoRecordExists($options),true);
                    
68						->addValidator(new Zend_Validate_StringLength(3,32),true)
                    
69						->addValidator(new Zend_Validate_Regex('#^[a-zA-Z0-9@\#\$%\^&\*\-\+]+$#'),true);
                    
70			if(!$validator->isValid($arrParam['password'])){
                    
76		//=========================================
                    
77		//KIEM TRA email
                    
78		//=========================================
                    
81			
                    
82			$validator->addValidator(new Zend_Validate_EmailAddress(),true);
                    
83			if(!$validator->isValid($arrParam['email'])){
                    
84				$message = $validator->getMessages();
                    
85				$this->_messagesError['email'] = 'Email: ' . current($message);
                    
86			}
                    
                
event.html https://gitlab.com/x33n/formvalidation | HTML | 310 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>
                    
208                        },
                    
209                        regexp: {
                    
210                            regexp: /^[a-zA-Z0-9_\.]+$/,
                    
218                },
                    
219                email: {
                    
220                    validators: {
                    
220                    validators: {
                    
221                        emailAddress: {
                    
222                            message: 'The input is not a valid email address'
                    
                
jquery.validationEngine-sv.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 147 lines
                    
18                "maxSize": {
                    
19                    "regex": "none",
                    
20                    "alertText": "* Maximalt ",
                    
23				"groupRequired": {
                    
24                    "regex": "none",
                    
25                    "alertText": "* You must fill one of the following fields"
                    
57                "creditCard": {
                    
58                    "regex": "none",
                    
59                    "alertText": "* Ogiltigt kreditkortsnummer"
                    
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": "* Enbart siffror"
                    
                
jquery.validationEngine-de.js https://gitlab.com/Mirros/cdnjs | JavaScript | 139 lines
                    
24                "maxSize": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* Maximal ",
                    
29				"groupRequired": {
                    
30                    "regex": "none",
                    
31                    "alertText": "* Sie müssen mindestens eines dieser Felder ausfüllen"
                    
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,
                    
98                "onlyLetterSp": {
                    
99	                 "regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
                    
100                     "alertText": "* Nur Buchstaben erlaubt"
                    
                
jquery.validationEngine-it.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 111 lines
                    
5            $.validationEngineLanguage.allRules = {
                    
6                "required": { // Add your regex rules here, you can take telephone as an example
                    
7                    "regex": "none",
                    
28				"groupRequired": {
                    
29                    "regex": "none",
                    
30                    "alertText": "* You must fill one of the following fields"
                    
32                "minCheckbox": {
                    
33                    "regex": "none",
                    
34                    "alertText": "* Per favore selezionare ",
                    
50                "email": {
                    
51                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
52                    "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,
                    
89                "noSpecialCharacters": {
                    
90                    "regex": /^[0-9a-zA-Z]+$/,
                    
91                    "alertText": "* Caratteri speciali non permessi"
                    
                
vi_VN.js https://gitlab.com/Mirros/cdnjs | JavaScript | 322 lines
                    
39        },
                    
40        emailAddress: {
                    
41            'default': 'Vui lòng nhập địa chỉ email hợp lệ'
                    
224        },
                    
225        regexp: {
                    
226            'default': 'Vui lòng nhập giá trị thích hợp với biểu mẫu'
                    
                
test_x509name.rb https://gitlab.com/klauer/ruby | Ruby | 276 lines
                    
6  OpenSSL::ASN1::ObjectId.register(
                    
7    "1.2.840.113549.1.9.1", "emailAddress", "emailAddress")
                    
8  OpenSSL::ASN1::ObjectId.register(
                    
79    ary = name.to_a
                    
80    assert_equal("/DC=org/DC=ruby-lang/CN=GOTOU Yuuzou/emailAddress=gotoyuzo@ruby-lang.org/serialNumber=123", name.to_s)
                    
81    assert_equal("DC", ary[0][0])
                    
83    assert_equal("CN", ary[2][0])
                    
84    assert_equal("emailAddress", ary[3][0])
                    
85    assert_equal("serialNumber", ary[4][0])
                    
140        ["CN", "GOTOU Yuuzou"],
                    
141        ["emailAddress", "gotoyuzo@ruby-lang.org"],
                    
142      ],
                    
168        ["1.2.840.113549.1.9.1", "gotoyuzo@ruby-lang.org"],
                    
169        ["emailAddress", "gotoyuzo@ruby-lang.org"],
                    
170      ],
                    
                
stackedForm.html https://gitlab.com/x33n/formvalidation | HTML | 198 lines
                    
51            <div class="uk-form-row">
                    
52                <label class="uk-form-label">Email address</label>
                    
53                <div class="uk-form-controls">
                    
53                <div class="uk-form-controls">
                    
54                    <input name="email" type="text" placeholder="Email address" />
                    
55                </div>
                    
140                    },
                    
141                    regexp: {
                    
142                        regexp: /^[a-zA-Z0-9_\.]+$/,
                    
149                    notEmpty: {
                    
150                        message: 'The email address is required'
                    
151                    },
                    
151                    },
                    
152                    emailAddress: {
                    
153                        message: 'The input is not a valid email address'
                    
                
validator.js https://gitlab.com/dima-antonenko/projectX | JavaScript | 287 lines
                    
152          case 'integer':
                    
153            assert = new Validator.Assert().Regexp('^-?\\d+$');
                    
154            break;
                    
176                  // "(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})" +  // ** mod: allow local networks
                    
177                  // IP address dotted notation octets
                    
178                  // excludes loopback network 0.0.0.0
                    
179                  // excludes reserved space >= 224.0.0.0
                    
180                  // excludes network & broacast addresses
                    
181                  // (first & last IP address of each class)
                    
214          // everything excluding the opening and closing slashes and the flags
                    
215          regexp = regexp.replace(new RegExp('^/(.*?)/' + flags + '$'), '$1');
                    
216        }
                    
217
                    
218        return $.extend(new Validator.Assert().Regexp(regexp, flags), { priority: 64 });
                    
219      },
                    
                
validation.php https://gitlab.com/rflorat/backend-project | PHP | 296 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'                  => [
                    
142        'created_at' => 'Created at',
                    
143        'email'      => 'Email',
                    
144        'mr'         => 'Mr',
                    
230        'groups'                => 'Groups',
                    
231        'email'                 => 'Email',
                    
232        'password'              => 'Password',
                    
247        // Settings
                    
248        'webmaster_email'       => 'Webmaster email',
                    
249        'google_analytics_code' => 'Google Analytics Tracking Id',
                    
                
helper.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 168 lines
                    
82	 * @static
                    
83	 * @param string $address E-Mail address.
                    
84	 * @return string|false E-Mail address string or boolean false if injected headers are present.
                    
86	 */
                    
87	function cleanAddress($address)
                    
88	{
                    
102	 */
                    
103	function isEmailAddress($email)
                    
104	{
                    
105
                    
106		// Split the email into a local and domain
                    
107		$atIndex	= strrpos($email, "@");
                    
107		$atIndex	= strrpos($email, "@");
                    
108		$domain		= substr($email, $atIndex+1);
                    
109		$local		= substr($email, 0, $atIndex);
                    
                
sender.rb https://gitlab.com/Ruwan-Ranganath/discourse | Ruby | 194 lines
                    
3# to be "do nothing". This is because some Mailers will decide not to do work for some
                    
4# reason. For example, emailing a user too frequently. A nil to address is also considered
                    
5# "do nothing"
                    
65      # Set up the email log
                    
66      email_log = EmailLog.new(email_type: @email_type, to_address: to_address, user_id: @user.try(:id))
                    
67
                    
118
                    
119      if SiteSetting.reply_by_email_address.present? && SiteSetting.reply_by_email_address["+"]
                    
120        email_log.bounce_key = SecureRandom.hex
                    
124        # as the Envelope From address so stuff works as expected
                    
125        @message.header[:return_path] = SiteSetting.reply_by_email_address.sub("%{reply_key}", "verp-#{email_log.bounce_key}")
                    
126      end
                    
185        email_type: @email_type,
                    
186        to_address: to_address,
                    
187        user_id: @user.try(:id),
                    
                
jquery.validationEngine-pl.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 134 lines
                    
7                "required": { // Add your regex rules here, you can take telephone as an example
                    
8                    "regex": "none",
                    
9                    "alertText": "* Pole wymagane",
                    
18                "maxSize": {
                    
19                    "regex": "none",
                    
20                    "alertText": "* Maksymalna liczba znaków to ",
                    
27                "min": {
                    
28                    "regex": "none",
                    
29                    "alertText": "* Najmniejsza wartość to "
                    
56                "creditCard": {
                    
57                    "regex": "none",
                    
58                    "alertText": "* Nieprawidłowy numer karty kredytowej"
                    
65                "email": {
                    
66                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
67                    "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,
                    
                
de_DE.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 370 lines
                    
49        },
                    
50        emailAddress: {
                    
51            'default': 'Bitte gültige Emailadresse eingeben'
                    
256        },
                    
257        regexp: {
                    
258            'default': 'Bitte Wert eingeben, der der Maske entspricht'
                    
                
zh_TW.js https://gitlab.com/Mirros/cdnjs | JavaScript | 326 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': '請輸入有效的EMAIL'
                    
228        },
                    
229        regexp: {
                    
230            'default': '請輸入有效的值'
                    
                
TextHelper.php https://gitlab.com/nghiep5890/bakery | PHP | 345 lines
                    
4 *
                    
5 * Text manipulations: Highlight, excerpt, truncate, strip of links, convert email addresses to mailto: links...
                    
6 *
                    
26 *
                    
27 * Text manipulations: Highlight, excerpt, truncate, strip of links, convert email addresses to mailto: links...
                    
28 *
                    
130 *
                    
131 * @param array $matches An array of regexp matches.
                    
132 * @return string Replaced values.
                    
159/**
                    
160 * Links email addresses
                    
161 *
                    
203/**
                    
204 * Convert all links and email addresses to HTML links.
                    
205 *
                    
                
form.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 95 lines
                    
5	var form = document.userform;
                    
6	var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i");
                    
7
                    
16		alert( "<?php echo JText::_( 'Please enter your name.', true );?>" );
                    
17	} else if (form.email.value == "") {
                    
18		alert( "<?php echo JText::_( 'Please enter a valid e-mail address.', true );?>" );
                    
54	<td>
                    
55		<label for="email">
                    
56			<?php echo JText::_( 'email' ); ?>:
                    
59	<td>
                    
60		<input class="inputbox" type="text" id="email" name="email" value="<?php echo $this->user->get('email');?>" size="40" />
                    
61	</td>
                    
                
id_ID.js https://gitlab.com/Mirros/cdnjs | JavaScript | 370 lines
                    
49        },
                    
50        emailAddress: {
                    
51            'default': 'Silahkan isi alamat email yang valid'
                    
222        mac: {
                    
223            'default': 'Silahkan isi MAC address yang valid'
                    
224        },
                    
256        },
                    
257        regexp: {
                    
258            'default': 'Silahkan isi nilai yang cocok dengan pola'
                    
                
jquery.validationEngine-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 169 lines
                    
24                "minSize": {
                    
25                    "regex": "none",
                    
26                    "alertText": "* Minimum ",
                    
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": "* Invalid phone number"
                    
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,
                    
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,
                    
76                    "alertText": "* Invalid email address"
                    
77                },
                    
107                "onlyLetterNumber": {
                    
108                    "regex": /^[0-9a-zA-Z]+$/,
                    
109                    "alertText": "* No special characters allowed"
                    
                
jquery.linkify.js https://gitlab.com/Mirros/cdnjs | JavaScript | 270 lines
                    
132
                    
133			// The previous line added `http://` to emails. Replace that with `mailto:`
                    
134			text = text.replace(this.constructor.emailLinkMatch, '$1mailto:$3');
                    
171		@static
                    
172		@type		RegExp
                    
173	*/
                    
173	*/
                    
174	Linkified.linkMatch = new RegExp([
                    
175
                    
179		')(?:', //Main group
                    
180		'(', // 2. Email address (optional)
                    
181		'[a-zA-Z0-9\\+_\\-]+',
                    
207	/**
                    
208		The regular expression of matching email links after the
                    
209		application of the initial link matcher.
                    
                
devise.rb https://gitlab.com/pymevirtual/devise | Ruby | 180 lines
                    
44  # These keys will be downcased upon creating or modifying a user and when used
                    
45  # to authenticate or find a user. Default is :email.
                    
46  config.case_insensitive_keys = [:email]
                    
49  # These keys will have whitespace before and after removed upon creating or
                    
50  # modifying a user and when used to authenticate or find a user. Default is :email.
                    
51  config.strip_whitespace_keys = [:email]
                    
79  # Defines which key will be used when confirming an account
                    
80  # config.confirmation_keys = [:email]
                    
81
                    
92
                    
93  # Regex to use to validate the email address
                    
94  # config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
                    
110  # Defines which strategy will be used to unlock an account.
                    
111  # :email = Sends an unlock link to the user email
                    
112  # :time  = Re-enables login after a certain amount of time (see :unlock_in below)
                    
                
sr_RS.js https://gitlab.com/Mirros/cdnjs | JavaScript | 357 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': 'Molimo da unesete važeću e-mail adresu'
                    
249        },
                    
250        regexp: {
                    
251            'default': 'Molimo da unesete vrednost koja se poklapa sa paternom'
                    
                
ro_RO.js https://gitlab.com/Mirros/cdnjs | JavaScript | 357 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': 'Te rog sa introduci o adresa de email valide'
                    
249        },
                    
250        regexp: {
                    
251            'default': 'Te rog sa introduci o valoare in formatul'
                    
                
0001_initial.py https://gitlab.com/cavadu/mercatitulo | Python | 44 lines
                    
23                ('is_superuser', models.BooleanField(help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status', default=False)),
                    
24                ('username', models.CharField(max_length=30, validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.', 'invalid')], verbose_name='username', error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', unique=True)),
                    
25                ('first_name', models.CharField(max_length=30, verbose_name='first name', blank=True)),
                    
26                ('last_name', models.CharField(max_length=30, verbose_name='last name', blank=True)),
                    
27                ('email', models.EmailField(max_length=254, verbose_name='email address', blank=True)),
                    
28                ('is_staff', models.BooleanField(help_text='Designates whether the user can log into this admin site.', verbose_name='staff status', default=False)),
                    
                
test_error_messages.py https://gitlab.com/asmjahid/django | Python | 274 lines
                    
6    BooleanField, CharField, ChoiceField, DateField, DateTimeField,
                    
7    DecimalField, EmailField, FileField, FloatField, Form,
                    
8    GenericIPAddressField, IntegerField, ModelChoiceField,
                    
8    GenericIPAddressField, IntegerField, ModelChoiceField,
                    
9    ModelMultipleChoiceField, MultipleChoiceField, RegexField,
                    
10    SplitDateTimeField, TimeField, URLField, ValidationError, utils,
                    
111
                    
112    def test_regexfield(self):
                    
113        e = {
                    
118        }
                    
119        f = RegexField(r'^[0-9]+$', min_length=5, max_length=10, error_messages=e)
                    
120        self.assertFormErrors(['REQUIRED'], f.clean, '')
                    
124
                    
125    def test_emailfield(self):
                    
126        e = {
                    
                
jquery.linkify.js https://gitlab.com/Mirros/cdnjs | JavaScript | 424 lines
                    
122	@static
                    
123	@type		RegExp
                    
124*/
                    
124*/
                    
125Linkified.linkMatch = new RegExp([
                    
126
                    
130	')(?:', //Main group
                    
131	'(', // 2. Email address (optional)
                    
132	'[a-zA-Z0-9\\+_\\-]+',
                    
158/**
                    
159	The regular expression of matching email links after the
                    
160	application of the initial link matcher.
                    
161
                    
162	@property	emailLinkMatch
                    
163	@static
                    
                
jquery.validationEngine-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 173 lines
                    
29                "maxSize": {
                    
30                    "regex": "none",
                    
31                    "alertText": "* Maximum ",
                    
34				"groupRequired": {
                    
35                    "regex": "none",
                    
36                    "alertText": "* You must fill one of the following fields"
                    
68                "creditCard": {
                    
69                    "regex": "none",
                    
70                    "alertText": "* Invalid credit card number"
                    
77                "email": {
                    
78                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
79                    "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,
                    
79                    "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,
                    
80                    "alertText": "* Invalid email address"
                    
81                },
                    
                
specialName.html https://gitlab.com/x33n/formvalidation | HTML | 172 lines
                    
40                    <div class="form-group">
                    
41                        <label class="col-lg-3 control-label">Email address</label>
                    
42                        <div class="col-lg-5">
                    
42                        <div class="col-lg-5">
                    
43                            <input type="text" class="form-control" name="user.email" />
                    
44                        </div>
                    
125                    },
                    
126                    regexp: {
                    
127                        regexp: /^[a-zA-Z0-9_\.]+$/,
                    
131            },
                    
132            'user.email': {
                    
133                validators: {
                    
133                validators: {
                    
134                    emailAddress: {
                    
135                        message: 'The input is not a valid email address'
                    
                
Filter.h https://gitlab.com/rmstoi/mtermite | C Header | 383 lines
                    
223     */
                    
224    void setRegExp(const QRegExp& text);
                    
225    /** Returns the regular expression which the filter searches for in blocks of text */
                    
225    /** Returns the regular expression which the filter searches for in blocks of text */
                    
226    QRegExp regExp() const;
                    
227
                    
230     *
                    
231     * If regexp matches the empty string, then process() will return immediately
                    
232     * without finding results. 
                    
292    static const QRegExp FullUrlRegExp;
                    
293    static const QRegExp EmailAddressRegExp;
                    
294
                    
294
                    
295    // combined OR of FullUrlRegExp and EmailAddressRegExp
                    
296    static const QRegExp CompleteUrlRegExp; 
                    
                
convert-notifications.php https://gitlab.com/stevie007/cinostaging | 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
                    
                
jquery.validationEngine-cz.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 146 lines
                    
18                "maxSize": {
                    
19                    "regex": "none",
                    
20                    "alertText": "* Maximálně ",
                    
23				"groupRequired": {
                    
24                    "regex": "none",
                    
25                    "alertText": "* You must fill one of the following fields"
                    
27                "min": {
                    
28                    "regex": "none",
                    
29                    "alertText": "* Minimální hodnota je "
                    
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,
                    
108                "onlyNumberSp": {
                    
109                    "regex": /^[0-9\ ]+$/,
                    
110                    "alertText": "* Pouze čísla"
                    
                
es_CL.js https://gitlab.com/Mirros/cdnjs | JavaScript | 357 lines
                    
43        },
                    
44        emailAddress: {
                    
45            'default': 'Por favor ingrese un email válido'
                    
249        },
                    
250        regexp: {
                    
251            'default': 'Por favor ingrese un valor que coincida con el patrón'
                    
                
PduComposer.java https://gitlab.com/adam.lukaitis/TextSecure | Java | 1184 lines
                    
36    static private final int PDU_PHONE_NUMBER_ADDRESS_TYPE = 1;
                    
37    static private final int PDU_EMAIL_ADDRESS_TYPE = 2;
                    
38    static private final int PDU_IPV4_ADDRESS_TYPE = 3;
                    
42    /**
                    
43     * Address regular expression string.
                    
44     */
                    
45    static final String REGEXP_PHONE_NUMBER_ADDRESS_TYPE = "\\+?[0-9|\\.|\\-]+";
                    
46    static final String REGEXP_EMAIL_ADDRESS_TYPE = "[a-zA-Z| ]*\\<{0,1}[a-zA-Z| ]+@{1}" +
                    
47            "[a-zA-Z| ]+\\.{1}[a-zA-Z| ]+\\>{0,1}";
                    
47            "[a-zA-Z| ]+\\.{1}[a-zA-Z| ]+\\>{0,1}";
                    
48    static final String REGEXP_IPV6_ADDRESS_TYPE =
                    
49        "[a-fA-F]{4}\\:{1}[a-fA-F0-9]{4}\\:{1}[a-fA-F0-9]{4}\\:{1}" +
                    
51        "[a-fA-F0-9]{4}\\:{1}[a-fA-F0-9]{4}";
                    
52    static final String REGEXP_IPV4_ADDRESS_TYPE = "[0-9]{1,3}\\.{1}[0-9]{1,3}\\.{1}" +
                    
53            "[0-9]{1,3}\\.{1}[0-9]{1,3}";
                    
                
paypal-return-in-wa-ccaps-wo-level.inc.php https://gitlab.com/Gashler/dp | PHP | 201 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"]["membership_item_number_wo_level_regex"], $paypal["item_number"]))
                    
47						&& (empty ($paypal["payment_status"]) || empty ($payment_status_issues) || !preg_match ($payment_status_issues, $paypal["payment_status"]))
                    
47						&& (empty ($paypal["payment_status"]) || empty ($payment_status_issues) || !preg_match ($payment_status_issues, $paypal["payment_status"]))
                    
48						&& (!empty ($paypal["txn_id"]) && ($paypal["subscr_id"] = $paypal["txn_id"])) && (!empty ($paypal["payer_email"])))
                    
49							{
                    
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"];
                    
106																						if (($code = preg_replace ("/%%full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (trim ($paypal["first_name"] . " " . $paypal["last_name"])), $code)))
                    
107																							if (($code = preg_replace ("/%%payer_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($paypal["payer_email"]), $code)))
                    
108																								{
                    
110																										if (($code = preg_replace ("/%%user_full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (trim ($user->first_name . " " . $user->last_name)), $code)))
                    
111																											if (($code = preg_replace ("/%%user_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($user->user_email), $code)))
                    
112																												if (($code = preg_replace ("/%%user_login%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($user->user_login), $code)))
                    
                
paypal-notify-in-web-accept-sp.inc.php https://gitlab.com/Gashler/dp | PHP | 258 lines
                    
77
                    
78												$sbj = preg_replace ("/%%sp_access_url%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($sp_access_url), $GLOBALS["WS_PLUGIN__"]["s2member"]["o"][(($_REQUEST["s2member_paypal_proxy"] && preg_match ("/pro-emails/", $_REQUEST["s2member_paypal_proxy_use"])) ? "pro_" : "") . "sp_email_subject"]);
                    
79												$sbj = preg_replace ("/%%sp_access_exp%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (c_ws_plugin__s2member_utils_time::approx_time_difference (time (), strtotime ("+" . $paypal["hours"] . " hours"))), $sbj);
                    
80
                    
81												$msg = preg_replace ("/%%sp_access_url%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($sp_access_url), $GLOBALS["WS_PLUGIN__"]["s2member"]["o"][(($_REQUEST["s2member_paypal_proxy"] && preg_match ("/pro-emails/", $_REQUEST["s2member_paypal_proxy_use"])) ? "pro_" : "") . "sp_email_message"]);
                    
82												$msg = preg_replace ("/%%sp_access_exp%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (c_ws_plugin__s2member_utils_time::approx_time_difference (time (), strtotime ("+" . $paypal["hours"] . " hours"))), $msg);
                    
83
                    
84												$rec = preg_replace ("/%%sp_access_url%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($sp_access_url), $GLOBALS["WS_PLUGIN__"]["s2member"]["o"][(($_REQUEST["s2member_paypal_proxy"] && preg_match ("/pro-emails/", $_REQUEST["s2member_paypal_proxy_use"])) ? "pro_" : "") . "sp_email_recipients"]);
                    
85												$rec = preg_replace ("/%%sp_access_exp%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (c_ws_plugin__s2member_utils_time::approx_time_difference (time (), strtotime ("+" . $paypal["hours"] . " hours"))), $rec);
                    
109																																if (($msg = preg_replace ("/%%full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (trim ($paypal["first_name"] . " " . $paypal["last_name"])), $msg)))
                    
110																																	if (($msg = preg_replace ("/%%payer_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($paypal["payer_email"]), $msg)))
                    
111																																		if (($msg = preg_replace ("/%%user_ip%%/i", c_ws_plugin__s2member_utils_strings::esc_ds ($paypal["ip"]), $msg)))
                    
121																																					foreach (c_ws_plugin__s2member_utils_strings::parse_emails ($rec) as $recipient) // Go through a possible list of recipients.
                    
122																																						c_ws_plugin__s2member_email_configs::email_config () . wp_mail ($recipient, apply_filters ("ws_plugin__s2member_sp_email_sbj", $sbj, get_defined_vars ()), apply_filters ("ws_plugin__s2member_sp_email_msg", $msg, get_defined_vars ()), "From: \"" . preg_replace ('/"/', "'", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_name"]) . "\" <" . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_email"] . ">\r\nContent-Type: text/plain; charset=UTF-8") . c_ws_plugin__s2member_email_configs::email_config_release ();
                    
123
                    
                
paypal-notify-in-wa-ccaps-wo-level.inc.php https://gitlab.com/Gashler/dp | PHP | 295 lines
                    
99
                    
100																c_ws_plugin__s2member_email_configs::email_config () . wp_mail ($paypal["payer_email"], apply_filters ("ws_plugin__s2member_capabilities_email_sbj", _x ("Thank you! Your account has been updated.", "s2member-front", "s2member"), get_defined_vars ()), apply_filters ("ws_plugin__s2member_capabilities_email_msg", _x ("Thank you! You now have access to:", "s2member-front", "s2member") . "\n" . $paypal["item_name"] . "\n\n" . _x ("Please log back in now.", "s2member-front", "s2member") . "\n" . wp_login_url (), get_defined_vars ()), "From: \"" . preg_replace ('/"/', "'", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_name"]) . "\" <" . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_email"] . ">\r\nContent-Type: text/plain; charset=UTF-8") . c_ws_plugin__s2member_email_configs::email_config_release ();
                    
101
                    
110																						if (($url = preg_replace ("/%%full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($paypal["first_name"] . " " . $paypal["last_name"]))), $url)))
                    
111																							if (($url = preg_replace ("/%%payer_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($paypal["payer_email"])), $url)))
                    
112
                    
116																										if (($url = preg_replace ("/%%user_full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($user->first_name . " " . $user->last_name))), $url)))
                    
117																											if (($url = preg_replace ("/%%user_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_email)), $url)))
                    
118																												if (($url = preg_replace ("/%%user_login%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_login)), $url)))
                    
142																							if (($url = preg_replace ("/%%full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($paypal["first_name"] . " " . $paypal["last_name"]))), $url)))
                    
143																								if (($url = preg_replace ("/%%payer_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($paypal["payer_email"])), $url)))
                    
144
                    
148																											if (($url = preg_replace ("/%%user_full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($user->first_name . " " . $user->last_name))), $url)))
                    
149																												if (($url = preg_replace ("/%%user_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_email)), $url)))
                    
150																													if (($url = preg_replace ("/%%user_login%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_login)), $url)))
                    
                
paypal-notify-in-subscr-or-wa-w-level.inc.php https://gitlab.com/Gashler/dp | PHP | 449 lines
                    
45						if ((!empty ($paypal["txn_type"]) && preg_match ("/^(web_accept|subscr_signup)$/i", $paypal["txn_type"]))
                    
46						&& (!empty ($paypal["item_number"]) && preg_match ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["membership_item_number_w_level_regex"], $paypal["item_number"]))
                    
47						&& (!empty ($paypal["subscr_id"]) || (!empty ($paypal["txn_id"]) && ($paypal["subscr_id"] = $paypal["txn_id"])))
                    
48						&& (empty ($paypal["payment_status"]) || empty ($payment_status_issues) || !preg_match ($payment_status_issues, $paypal["payment_status"]))
                    
49						&& (!empty ($paypal["payer_email"])))
                    
50							{
                    
155
                    
156																c_ws_plugin__s2member_email_configs::email_config () . wp_mail ($paypal["payer_email"], apply_filters ("ws_plugin__s2member_modification_email_sbj", _x ("Thank you! Your account has been updated.", "s2member-front", "s2member"), get_defined_vars ()), apply_filters ("ws_plugin__s2member_modification_email_msg", _x ("Thank you! You've been updated to:", "s2member-front", "s2member") . "\n" . $paypal["item_name"] . "\n\n" . _x ("Please log back in now.", "s2member-front", "s2member") . "\n" . wp_login_url (), get_defined_vars ()), "From: \"" . preg_replace ('/"/', "'", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_name"]) . "\" <" . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_email"] . ">\r\nContent-Type: text/plain; charset=UTF-8") . c_ws_plugin__s2member_email_configs::email_config_release ();
                    
157
                    
169																								if (($url = preg_replace ("/%%full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($paypal["first_name"] . " " . $paypal["last_name"]))), $url)))
                    
170																									if (($url = preg_replace ("/%%payer_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($paypal["payer_email"])), $url)))
                    
171
                    
175																												if (($url = preg_replace ("/%%user_full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($user->first_name . " " . $user->last_name))), $url)))
                    
176																													if (($url = preg_replace ("/%%user_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_email)), $url)))
                    
177							
                    
                
paypal-notify-in-subscr-or-rp-payment-w-level.inc.php https://gitlab.com/Gashler/dp | PHP | 225 lines
                    
49						&& (!empty ($paypal["item_name"]) || ($paypal["item_name"] = c_ws_plugin__s2member_paypal_utilities::paypal_pro_item_name ($paypal)))
                    
50						&& (!empty ($paypal["payer_email"]) || ($paypal["payer_email"] = c_ws_plugin__s2member_utils_users::get_user_email_with ($paypal["subscr_id"])))
                    
51						&& (!empty ($paypal["txn_id"])) && (!empty ($paypal["mc_gross"])))
                    
98																			if (($url = preg_replace ("/%%full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($paypal["first_name"] . " " . $paypal["last_name"]))), $url)))
                    
99																				if (($url = preg_replace ("/%%payer_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($paypal["payer_email"])), $url)))
                    
100																					{
                    
102																							if (($url = preg_replace ("/%%user_full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($user->first_name . " " . $user->last_name))), $url)))
                    
103																								if (($url = preg_replace ("/%%user_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_email)), $url)))
                    
104																									if (($url = preg_replace ("/%%user_login%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_login)), $url)))
                    
133														$msg .= "full_name: %%full_name%%\n";
                    
134														$msg .= "payer_email: %%payer_email%%\n";
                    
135
                    
138														$msg .= "user_full_name: %%user_full_name%%\n";
                    
139														$msg .= "user_email: %%user_email%%\n";
                    
140														$msg .= "user_login: %%user_login%%\n";
                    
                
paypal-notify-in-subscr-modify-w-level.inc.php https://gitlab.com/Gashler/dp | PHP | 296 lines
                    
131
                    
132														c_ws_plugin__s2member_email_configs::email_config () . wp_mail ($paypal["payer_email"], apply_filters ("ws_plugin__s2member_modification_email_sbj", _x ("Thank you! Your account has been updated.", "s2member-front", "s2member"), get_defined_vars ()), apply_filters ("ws_plugin__s2member_modification_email_msg", _x ("Thank you! You've been updated to:", "s2member-front", "s2member") . "\n" . $paypal["item_name"] . "\n\n" . _x ("Please log back in now.", "s2member-front", "s2member") . "\n" . wp_login_url (), get_defined_vars ()), "From: \"" . preg_replace ('/"/', "'", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_name"]) . "\" <" . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_email"] . ">\r\nContent-Type: text/plain; charset=UTF-8") . c_ws_plugin__s2member_email_configs::email_config_release ();
                    
133
                    
145																						if (($url = preg_replace ("/%%full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($paypal["first_name"] . " " . $paypal["last_name"]))), $url)))
                    
146																							if (($url = preg_replace ("/%%payer_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($paypal["payer_email"])), $url)))
                    
147
                    
149																									if (($url = preg_replace ("/%%user_full_name%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode (trim ($user->first_name . " " . $user->last_name))), $url)))
                    
150																										if (($url = preg_replace ("/%%user_email%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_email)), $url)))
                    
151																											if (($url = preg_replace ("/%%user_login%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($user->user_login)), $url)))
                    
182																$msg .= "full_name: %%full_name%%\n";
                    
183																$msg .= "payer_email: %%payer_email%%\n";
                    
184
                    
187																$msg .= "user_full_name: %%user_full_name%%\n";
                    
188																$msg .= "user_email: %%user_email%%\n";
                    
189																$msg .= "user_login: %%user_login%%\n";
                    
                
saml_utils.js https://gitlab.com/brandnewcampaign/townsquare-chat | JavaScript | 519 lines
                    
13
                    
14// var prefixMatch = new RegExp(/(?!xmlns)^.*:/);
                    
15
                    
42	if (options.identifierFormat === undefined) {
                    
43		options.identifierFormat = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress';
                    
44	}
                    
410
                    
411				if (!profile.email && profile.mail) {
                    
412					profile.email = profile.mail;
                    
415
                    
416			if (!profile.email && profile.nameID && profile.nameIDFormat && profile.nameIDFormat.indexOf('emailAddress') >= 0) {
                    
417				profile.email = profile.nameID;
                    
                
users_spec.rb https://gitlab.com/demisxbar/gitlab-ce | Ruby | 892 lines
                    
162      post api('/users', admin),
                    
163        email: 'invalid email',
                    
164        password: 'password',
                    
269    it 'should update user with his own email' do
                    
270      put api("/users/#{user.id}", admin), email: user.email
                    
271      expect(response.status).to eq(200)
                    
354      expect(json_response['message']['username']).
                    
355        to eq([Gitlab::Regex.namespace_regex_message])
                    
356    end
                    
364
                    
365      it 'should return 409 conflict error if email address exists' do
                    
366        put api("/users/#{@user.id}", admin), email: 'test@example.com'
                    
367        expect(response.status).to eq(409)
                    
368        expect(@user.reload.email).to eq(@user.email)
                    
369      end
                    
                
jqBootstrapValidation.js https://gitlab.com/phpcodeinfected/owncms | JavaScript | 912 lines
                    
113              $this.data("validationPatternMessage", message);
                    
114              $this.data("validationPatternRegex", $this.attr("pattern"));
                    
115            }
                    
182            // ---------------------------------------------------------
                    
183            //                                                     EMAIL
                    
184            // ---------------------------------------------------------
                    
185            if ($this.attr("type") !== undefined && $this.attr("type").toLowerCase() === "email") {
                    
186              message = "Not a valid email address<!-- data-validator-validemail-message to override -->";
                    
187              if ($this.data("validationValidemailMessage")) {
                    
187              if ($this.data("validationValidemailMessage")) {
                    
188                message = $this.data("validationValidemailMessage");
                    
189              } else if ($this.data("validationEmailMessage")) {
                    
189              } else if ($this.data("validationEmailMessage")) {
                    
190                message = $this.data("validationEmailMessage");
                    
191              }
                    
                
validate.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 609 lines
                    
20            valid_email: 'The %s field must contain a valid email address.',
                    
21            valid_emails: 'The %s field must contain all valid email addresses.',
                    
22            min_length: 'The %s field must be at least %s characters in length.',
                    
57        decimalRegex = /^\-?[0-9]*\.?[0-9]+$/,
                    
58        emailRegex = /^[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])?)*$/,
                    
59        alphaRegex = /^[a-z]+$/i,
                    
61        alphaDashRegex = /^[a-z0-9_\-]+$/i,
                    
62        naturalRegex = /^[0-9]+$/i,
                    
63        naturalNoZeroRegex = /^[1-9][0-9]*$/i,
                    
64        ipRegex = /^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$/i,
                    
65        base64Regex = /[^a-zA-Z0-9\/\+=]/i,
                    
66        numericDashRegex = /^[\d\-\s]+$/,
                    
414        valid_email: function(field) {
                    
415            return emailRegex.test(field.value);
                    
416        },
                    
                
jquery.validate.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1357 lines
                    
231	$.each( params, function( i, n ) {
                    
232		source = source.replace( new RegExp( "\\{" + i + "\\}", "g" ), function() {
                    
233			return n;
                    
310		remote: "Please fix this field.",
                    
311		email: "Please enter a valid email address.",
                    
312		url: "Please enter a valid URL.",
                    
367					"[type='number'], [type='search'] ,[type='tel'], [type='url'], " +
                    
368					"[type='email'], [type='datetime'], [type='date'], [type='month'], " +
                    
369					"[type='week'], [type='time'], [type='datetime-local'], " +
                    
                
jquery.h5validate.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 553 lines
                    
24				// HTML5-compatible validation pattern library that can be extended and/or overriden.
                    
25				patternLibrary : { //** TODO: Test the new regex patterns. Should I apply these to the new input types?
                    
26					// **TODO: password
                    
28
                    
29					// Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
                    
30					email: /((([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-zA-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-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?/,
                    
240					// "...as if it implied a ^(?: at the start of the pattern and a )$ at the end."
                    
241					re = new RegExp('^(?:' + pattern + ')$'),
                    
242					$radiosWithSameName = null,
                    
273				if (settings.debug && window.console) {
                    
274					console.log('Validate called on "' + value + '" with regex "' + re + '". Required: ' + required); // **DEBUG
                    
275					console.log('Regex test: ' + re.test(value) + ', Pattern: ' + pattern); // **DEBUG
                    
                
no_NO.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 379 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'Vennligst fyll ut dette feltet med en gyldig epostadresse'
                    
262            },
                    
263            regexp: {
                    
264                'default': 'Vennligst fyll ut dette feltet med en verdi som matcher mønsteret'
                    
                
fa_IR.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 379 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'لطفا آدرس ایمیل معتبر وارد فرمایید'
                    
225            mac: {
                    
226                'default': 'لطفا یک MAC address معتبر وارد فرمایید'
                    
227            },
                    
262            },
                    
263            regexp: {
                    
264                'default': 'لطفا یک مقدار مطابق با الگو وارد فرمایید'
                    
                
ar_MA.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 379 lines
                    
56            },
                    
57            emailAddress: {
                    
58                'default': 'الرجاء إدخال بريد إلكتروني صحيح.'
                    
262            },
                    
263            regexp: {
                    
264                'default': 'الرجاء إدخال قيمة مطابقة للنمط.'
                    
                
link.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1293 lines
                    
94				if ( emailProtection == 'encode' ) {
                    
95					href = href.replace( encodedEmailLinkRegex, function( match, protectedAddress, rest ) {
                    
96						return 'mailto:' +
                    
118							}
                    
119							email.address = [ email.name, email.domain ].join( '@' );
                    
120						}
                    
131				// Protected email link as encoded string.
                    
132				else if ( ( emailMatch = href.match( emailRegex ) ) ) {
                    
133					var subjectMatch = href.match( emailSubjectRegex ),
                    
137					var email = ( retval.email = {} );
                    
138					email.address = emailMatch[ 1 ];
                    
139					subjectMatch && ( email.subject = decodeURIComponent( subjectMatch[ 1 ] ) );
                    
307
                    
308	function protectEmailAddressAsEncodedString( address ) {
                    
309		var charCode,
                    
                
mode-typescript.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1018 lines
                    
11            token : "comment.doc.tag",
                    
12            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
13        }, {
                    
14            token : "comment.doc.tag",
                    
15            regex : "\\bTODO\\b"
                    
16        }, {
                    
26        token : "comment.doc", // doc comment
                    
27        regex : "\\/\\*(?=\\*)",
                    
28        next  : start
                    
34        token : "comment.doc", // closing comment
                    
35        regex : "\\*\\/",
                    
36        next  : start
                    
54        "variable.language":
                    
55            "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|"  + // Constructors
                    
56            "Namespace|QName|XML|XMLList|"                                             + // E4X
                    
                
mode-protobuf.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 877 lines
                    
11            token : "comment.doc.tag",
                    
12            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
13        }, {
                    
14            token : "comment.doc.tag",
                    
15            regex : "\\bTODO\\b"
                    
16        }, {
                    
26        token : "comment.doc", // doc comment
                    
27        regex : "\\/\\*(?=\\*)",
                    
28        next  : start
                    
34        token : "comment.doc", // closing comment
                    
35        regex : "\\*\\/",
                    
36        next  : start
                    
94                token : "comment",
                    
95                regex : "\\/\\/.*$"
                    
96            },
                    
                
mode-php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 883 lines
                    
11            token : "comment.doc.tag",
                    
12            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
13        }, {
                    
14            token : "comment.doc.tag",
                    
15            regex : "\\bTODO\\b"
                    
16        }, {
                    
26        token : "comment.doc", // doc comment
                    
27        regex : "\\/\\*(?=\\*)",
                    
28        next  : start
                    
34        token : "comment.doc", // closing comment
                    
35        regex : "\\*\\/",
                    
36        next  : start
                    
73            token : "comment", // multi line comment
                    
74            regex : "\\/\\*",
                    
75            push : "comment"
                    
                
mode-pgsql.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 924 lines
                    
11            token : "comment.doc.tag",
                    
12            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
13        }, {
                    
14            token : "comment.doc.tag",
                    
15            regex : "\\bTODO\\b"
                    
16        }, {
                    
26        token : "comment.doc", // doc comment
                    
27        regex : "\\/\\*(?=\\*)",
                    
28        next  : start
                    
34        token : "comment.doc", // closing comment
                    
35        regex : "\\*\\/",
                    
36        next  : start
                    
94                token : "comment.doc",
                    
95                regex : "^=(?:begin|item)\\b",
                    
96                next : "block_comment"
                    
                
mode-objectivec.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 380 lines
                    
11            token : "comment.doc.tag",
                    
12            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
13        }, {
                    
14            token : "comment.doc.tag",
                    
15            regex : "\\bTODO\\b"
                    
16        }, {
                    
26        token : "comment.doc", // doc comment
                    
27        regex : "\\/\\*(?=\\*)",
                    
28        next  : start
                    
34        token : "comment.doc", // closing comment
                    
35        regex : "\\*\\/",
                    
36        next  : start
                    
94                token : "comment",
                    
95                regex : "\\/\\/.*$"
                    
96            },
                    
335            token: ["support.function.cocoa"],
                    
336            regex: "(?:\\b)(NS(?:R(?:ound(?:DownToMultipleOfPageSize|UpToMultipleOfPageSize)|un(?:CriticalAlertPanel(?:RelativeToWindow)?|InformationalAlertPanel(?:RelativeToWindow)?|AlertPanel(?:RelativeToWindow)?)|e(?:set(?:MapTable|HashTable)|c(?:ycleZone|t(?:Clip(?:List)?|F(?:ill(?:UsingOperation|List(?:UsingOperation|With(?:Grays|Colors(?:UsingOperation)?))?)?|romString))|ordAllocationEvent)|turnAddress|leaseAlertPanel|a(?:dPixel|l(?:MemoryAvailable|locateCollectable))|gisterServicesProvider)|angeFromString)|Get(?:SizeAndAlignment|CriticalAlertPanel|InformationalAlertPanel|UncaughtExceptionHandler|FileType(?:s)?|WindowServerMemory|AlertPanel)|M(?:i(?:n(?:X|Y)|d(?:X|Y))|ouseInRect|a(?:p(?:Remove|Get|Member|Insert(?:IfAbsent|KnownAbsent)?)|ke(?:R(?:ect|ange)|Size|Point)|x(?:Range|X|Y)))|B(?:itsPer(?:SampleFromDepth|PixelFromDepth)|e(?:stDepth|ep|gin(?:CriticalAlertSheet|InformationalAlertSheet|AlertSheet)))|S(?:ho(?:uldRetainWithZo
                    
                
mode-golang.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 701 lines
                    
11            token : "comment.doc.tag",
                    
12            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
13        }, {
                    
14            token : "comment.doc.tag",
                    
15            regex : "\\bTODO\\b"
                    
16        }, {
                    
26        token : "comment.doc", // doc comment
                    
27        regex : "\\/\\*(?=\\*)",
                    
28        next  : start
                    
34        token : "comment.doc", // closing comment
                    
35        regex : "\\*\\/",
                    
36        next  : start
                    
76                    token : "comment",
                    
77                    regex : "\\/\\/.*$"
                    
78                },
                    
                
mode-d.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 461 lines
                    
11            token : "comment.doc.tag",
                    
12            regex : "@[\\w\\d_]+" // TODO: fix email addresses
                    
13        }, {
                    
14            token : "comment.doc.tag",
                    
15            regex : "\\bTODO\\b"
                    
16        }, {
                    
26        token : "comment.doc", // doc comment
                    
27        regex : "\\/\\*(?=\\*)",
                    
28        next  : start
                    
34        token : "comment.doc", // closing comment
                    
35        regex : "\\*\\/",
                    
36        next  : start
                    
82        token: "constant.language.escape",
                    
83        regex: "\\\\(?:(?:x[0-9A-F]{2})|(?:[0-7]{1,3})|(?:['\"\\?0abfnrtv\\\\])|" +
                    
84            "(?:u[0-9a-fA-F]{4})|(?:U[0-9a-fA-F]{8}))"
                    
                
 

Source

Language