100+ results results for 'email address regex' (559 ms)
49 }, 50 emailAddress: { 51 'default': 'Ju lutem vendosni një adresë email të vlefshme' 256 }, 257 regexp: { 258 'default': 'Ju lutem vendosni një vlerë që përputhet me modelin'jquery.validationEngine-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 179 lines
35 "maxSize": { 36 "regex": "none", 37 "alertText": "* Maximum ", 40 "groupRequired": { 41 "regex": "none", 42 "alertText": "* You must fill one of the following fields" 74 "creditCard": { 75 "regex": "none", 76 "alertText": "* Invalid credit card number" 83 "email": { 84 // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 ) 85 "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/, 85 "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/, 86 "alertText": "* Invalid email address" 87 },vi_VN.js https://gitlab.com/darmah250903/agung | JavaScript | 378 lines
50 }, 51 emailAddress: { 52 default: 'Vui lòng nhập địa chỉ email hợp lệ', 262 }, 263 regexp: { 264 default: 'Vui lòng nhập giá trị thích hợp với biểu mẫu',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)))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'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'mailto.rb https://gitlab.com/MichelZuniga/ruby | Ruby | 286 lines
17 class MailTo < Generic 18 include REGEXP 19 52 HEADER_REGEXP = /\A(?<hfield>(?:%\h\h|[!$'-.0-;@-Z_a-z~])*=(?:%\h\h|[!$'-.0-;@-Z_a-z~])*)(?:&\g<hfield>)*\z/ 53 # practical regexp for email address 54 # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address 54 # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address 55 EMAIL_REGEXP = /\A[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/ 56 # :startdoc: 68 # The headers can be supplied as a pre-encoded string, such as 69 # "subject=subscribe&cc=address", or as an Array of Arrays like 70 # [['subject', 'subscribe'], ['cc', 'address']] 175 addr.gsub!(/%\h\h/, URI::TBLDECWWWCOMP_) 176 if EMAIL_REGEXP !~ addr 177 raise InvalidComponentError,string.js https://gitlab.com/thomasphillips3/beerlocker | JavaScript | 506 lines
124 * var M = db.model('M', s); 125 * var m = new M({ email: 'SomeEmail@example.COM' }); 126 * console.log(m.email) // someemail@example.com 205 * var schema = new Schema({ postalCode: { type: String, minlength: 5 }) 206 * var Address = db.model('Address', schema) 207 * var address = new Address({ postalCode: '9512' }) 259 * var schema = new Schema({ postalCode: { type: String, maxlength: 9 }) 260 * var Address = db.model('Address', schema) 261 * var address = new Address({ postalCode: '9512512345' }) 338 * 339 * @param {RegExp} regExp regular expression to test against 340 * @param {String} [message] optional custom error message 365 type: 'regexp', 366 regexp: regExp 367 });ciabot.pl https://gitlab.com/envieidoc/Openswan | Perl | 288 lines
17# This program is designed to run as the .git/commit-post-hook script. It takes 18# the commit information, massaging it and mailing it to the address given below. 19# 43use strict; 44use vars qw ($project $from_email $dest_email $noisy $rpc_uri $sendmail 45 $xml_rpc $ignore_regexp $alt_local_message_target); 54 55# The from address in generated mails. 56$from_email = 'nightly@xelerance.com'; 57 58# Mail all reports to this address. 59$dest_email = 'nightly@lists.openswan.org'; 83# 84# This variable should contain regexp, against which will each object be 85# checked, and if the regexp is matched, the file is ignored. Therefore ie. tomode-dot.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 361 lines
51 token : "comment.doc.tag", 52 regex : "@[\\w\\d_]+" // TODO: fix email addresses 53 }, { 54 token : "comment.doc.tag", 55 regex : "\\bTODO\\b" 56 }, { 66 token : "comment.doc", // doc comment 67 regex : "\\/\\*(?=\\*)", 68 next : start 74 token : "comment.doc", // closing comment 75 regex : "\\*\\/", 76 next : start 106 token : "comment", 107 regex : /\/\/.*$/ 108 }, {en_US.js https://gitlab.com/Mirros/cdnjs | JavaScript | 370 lines
49 }, 50 emailAddress: { 51 'default': 'Please enter a valid email address' 201 ip: { 202 'default': 'Please enter a valid IP address', 203 ipv4: 'Please enter a valid IPv4 address', 203 ipv4: 'Please enter a valid IPv4 address', 204 ipv6: 'Please enter a valid IPv6 address' 205 }, 222 mac: { 223 'default': 'Please enter a valid MAC address' 224 }, 256 }, 257 regexp: { 258 'default': 'Please enter a value matching the pattern'jquery.validationEngine-ja.js https://gitlab.com/Mirros/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": "* 半角数字で入力してください"validation.php https://gitlab.com/laher01/factu40 | PHP | 290 lines
39 'distinct' => 'El campo :attribute contiene un valor duplicado.', 40 'email' => ':attribute no es un correo válido', 41 'exists' => ':attribute es inválido.', 68 'present' => 'El campo :attribute debe estar presente.', 69 'regex' => 'El formato de :attribute es inválido.', 70 'required' => 'El campo :attribute es obligatorio.', 104 ], 105 'email' => [ 106 'unique' => 'El :attribute ya ha sido registrado.', 115 | The following language lines are used to swap attribute place-holders 116 | with something more reader friendly such as E-Mail Address instead 117 | of "email". This simply helps us make messages a little cleaner. 123 'username' => 'usuario', 124 'email' => 'correo electrónico', 125 'first_name' => 'nombre',jquery.validationEngine-es.js https://gitlab.com/zohaibsaleem/shipcliq | JavaScript | 131 lines
19 "groupRequired": { 20 "regex": "none", 21 "alertText": "* You must fill one of the following fields" 23 "maxSize": { 24 "regex": "none", 25 "alertText": "* Máximo de ", 57 "creditCard": { 58 "regex": "none", 59 "alertText": "* No válido de tarjeta de crédito" 66 "email": { 67 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 68 "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, 92 "onlyNumberSp": { 93 "regex": /^[0-9\ ]+$/, 94 "alertText": "* Sólo números"example.js https://gitlab.com/kaouech/theme | JavaScript | 290 lines
36 notEmpty: { 37 message: 'The email address is required and can\'t be empty' 38 }, 38 }, 39 emailAddress: { 40 message: 'The input is not a valid email address' 121 notEmpty: { 122 message: 'The email address is required and can\'t be empty' 123 }, 168 notEmpty: { 169 message: 'The email address is required and can\'t be empty' 170 }, 171 emailAddress: { 172 message: 'The input is not a valid email address' 173 }mailto.rb https://gitlab.com/leduc1984/ruby | Ruby | 286 lines
17 class MailTo < Generic 18 include REGEXP 19 52 HEADER_REGEXP = /\A(?<hfield>(?:%\h\h|[!$'-.0-;@-Z_a-z~])*=(?:%\h\h|[!$'-.0-;@-Z_a-z~])*)(?:&\g<hfield>)*\z/ 53 # practical regexp for email address 54 # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address 54 # http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address 55 EMAIL_REGEXP = /\A[a-zA-Z0-9.!\#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/ 56 # :startdoc: 68 # The headers can be supplied as a pre-encoded string, such as 69 # "subject=subscribe&cc=address", or as an Array of Arrays like 70 # [['subject', 'subscribe'], ['cc', 'address']] 175 addr.gsub!(/%\h\h/, URI::TBLDECWWWCOMP_) 176 if EMAIL_REGEXP !~ addr 177 raise InvalidComponentError,jquery.validationEngine-fr.js https://gitlab.com/adwait.rise/guruautolines | JavaScript | 129 lines
28 "maxSize": { 29 "regex": "none", 30 "alertText": "* Maximum ", 33 "min": { 34 "regex": "none", 35 "alertText": "* Valeur minimum requise " 67 // credit: jquery.h5validate.js / orefalo 68 "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/, 69 "alertText": "* Numéro de téléphone invalide" 71 "email": { 72 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 73 "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, 97 "onlyNumberSp": { 98 "regex": /^[0-9\ ]+$/, 99 "alertText": "* Seuls les chiffres sont acceptés"tr_TR.js https://gitlab.com/augustocbx/grimes | JavaScript | 385 lines
56 }, 57 emailAddress: { 58 'default': 'Lütfen geçerli bir E-Mail adresi giriniz' 268 }, 269 regexp: { 270 'default': 'Lütfen uyumlu bir değer giriniz'type.js https://gitlab.com/josephm9/304CEM-CW | JavaScript | 311 lines
137 * @property {boolean} TagInfo.optional - Indicates whether the member is optional. 138 * @property {string} TagInfo.text - Descriptive text for the member (for example, `The user's email 139 * address.`). 160 if ( /^(\[)?\s*(.+?)\s*(\])?$/.test(tagInfo.name) ) { 161 tagInfo.name = RegExp.$2; 162 // were the "optional" brackets present? 162 // were the "optional" brackets present? 163 if (RegExp.$1 && RegExp.$3) { 164 tagInfo.optional = true; 168 if ( /^(.+?)\s*=\s*(.+)$/.test(tagInfo.name) ) { 169 tagInfo.name = RegExp.$1; 170 tagInfo.defaultvalue = jsdoc.util.cast.cast(RegExp.$2);miq_provision_redhat_dialogs_clone_to_template.yaml https://gitlab.com/unofficial-mirrors/manageiq | YAML | 332 lines
42 :data_type: :string 43 :owner_address: 44 :description: Address 75 :method: :retrieve_ldap 76 :description: Look Up LDAP Email 77 :required: false 99 :data_type: :string 100 :owner_email: 101 :description: E-Mail 102 :required_method: :validate_regex 103 :required_regex: !ruby/regexp /\A[\w!#$\%&'*+\/=?`\{|\}~^-]+(?:\.[\w!#$\%&'*+\/=?`\{|\}~^-]+)*@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}\Z/i 104 :required: truejquery.validationEngine-et.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 139 lines
30 "minSize": { 31 "regex": "none", 32 "alertText": "* Minimaalselt ", 35 "maxSize": { 36 "regex": "none", 37 "alertText": "* Maksimaalselt ", 74 "creditCard": { 75 "regex": "none", 76 "alertText": "* Kehtetu krediitkaardi number" 79 // credit: jquery.h5validate.js / orefalo 80 "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/, 81 "alertText": "* Vigane telefoni number" 83 "email": { 84 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 85 "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,jquery.validationEngine-pl.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 130 lines
7 "required": { // Add your regex rules here, you can take telephone as an example 8 "regex": "none", 9 "alertText": "* Pole wymagane", 23 "groupRequired": { 24 "regex": "none", 25 "alertText": "* You must fill one of the following fields" 27 "min": { 28 "regex": "none", 29 "alertText": "* Najmniejsza wartość to " 57 // credit: jquery.h5validate.js / orefalo 58 "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/, 59 "alertText": "* Nieprawidłowy numer telefonu" 61 "email": { 62 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 63 "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,filter.pas https://github.com/dtouzeau/artica-1.5.git | Pascal | 487 lines
104 if RegExpr.Exec(Table[i]) then begin 105 if LowerCase(RegExpr.Match[1])='client_address' then infos.client_address:=RegExpr.Match[2]; 106 if LowerCase(RegExpr.Match[1])='client_name' then infos.client_name:=RegExpr.Match[2]; 202 203 if length(trim(email.ldap_ou))=0 then email.ldap_ou:=ldap.OU_From_eMail(Email.recipient); 204 if length(trim(email.ldap_ou))=0 then begin 297 D:=COMMANDLINE_PARAMETERS('debug'); 298 Email.ldap_uid:=ldap.EmailFromAliase(Email.recipient); 299 if D then writeln('BlackList:: uid=' + Email.ldap_uid); 342 343 if LDAP.IsBlackListed(Email.sender,Email.recipient) then begin 344 LOGS.Logs('artica-send:: BlackList::' + email.recipient+ ' as black listed '+Email.sender); 361 sql:='INSERT INTO messages (MessageID,mail_from,mailfrom_domain,mail_to,subject,zDate,received_date,SpamRate,message_path,filter_action,ou,MailSize,SpamInfos,quarantine) '; 362 sql:=sql + 'VALUES("'+ email.md+'","' + email.sender+'","' + email.senderdomain+'","' + email.recipient +'","'+Subject+'",'; 363 sql:=sql + 'DATE_FORMAT(NOW(),''%Y-%m-%d %H:%I:%S''),DATE_FORMAT(NOW(),''%Y-%m-%d %H:%I:%S''),"0","'+email.md+'","' +email.Filter_result+'","' +email.ldap_ou+'","' + email.size + '","NONE","0")';tr_TR.js https://gitlab.com/israt12/AtomicProject_IsratJerin_146574_CRUD_Create_Read_update_delete | JavaScript | 353 lines
43 }, 44 emailAddress: { 45 'default': 'Lütfen geçerli bir E-Mail adresi giriniz' 247 }, 248 regexp: { 249 'default': 'Lütfen uyumlu bir değer giriniz'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"Regex.hs https://gitlab.com/LukaHorvat/evo | Haskell | 343 lines
134randomSubtree :: MonadRandom m => RegEx -> m (RegEx, RegEx -> RegEx) 135randomSubtree regex = withWeight regex (weighRegex regex) 136 where withWeight Failed _ = return (Failed, identity) 177-- | A random leaf subexpression 178randomLeaf :: MonadRandom m => RegEx -> m (RegEx, RegEx -> RegEx) 179randomLeaf regex = do 214 215crossRegex :: MonadRandom m => RegEx -> RegEx -> m RegEx 216crossRegex a b = do 221validEmails :: [String] 222validEmails = ["email@example.com", "firstname.lastname@example.com", "email@subdomain.example.com", "firstname+lastname@example.com", "email@123.123.123.123", "email@[123.123.123.123]", "“email”@example.com", "1234567890@example.com", "email@example-one.com", "_______@example.com", "email@example.name", "email@example.museum", "email@example.co.jp", "firstname-lastname@example.com"] 223 224invalidEmails :: [String] 225invalidEmails = ["plainaddress", "#@%^%#$@#$@#.com", "@example.com", "Joe Smith <email@example.com>", "email.example.com", "email@example@example.com", ".email@example.com", "email.@example.com", "email..email@example.com", "あいうえお@example.com", "email@example.com (Joe Smith)", "email@example", "email@-example.com", "email@example.web", "email@111.222.333.44444", "email@example..com", "Abc..123@example.com"] 226sr_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'Language_nb.properties https://github.com/BrettSwaim/liferay-portal.git | Properties File | 37 lines
1authentication-search-filter-help=Angi søkefilteret som brukes til å teste gyldigheten av en bruker. Tokenene @company_id @, @email_address @, @screen_name @, og @user_id @ erstattes under kjøring med riktige verdier. (Automatic Translation) 2autogenerate-user-password=Autogenerer brukerpassord (Automatic Translation) 28password-encryption-algorithm-help=Angi passord krypteringen å bruke for å sammenligne passord under import og bruke for å kryptere passord under eksport. Sammenligne passord under import vil bare brukes når egenskapen "LDAPAuthConfiguration.method" er satt til passord-Sammenlign. Hvis kryptering er satt til ingen, som er standardverdien, blir passord betraktet som ren tekst. Algoritmen SHA-512 støttes ikke for øyeblikket. (Automatic Translation) 29password-policy-enabled-help=Sett denne til True bruk LDAP Passordpolicy i stedet for portalen Passordpolicy. Hvis satt til sann, er det mulig at portalen genererte passord ikke vil samsvarer med policyen LDAP. Se "passwords.regexptoolkit.*" egenskapene for detaljer om hvordan du konfigurerer RegExpToolkit i generere disse passordene. (Automatic Translation) 30range-size-help=Angi antall verdier som skal returneres i hver spørring en med attributtet for katalogserverne som støtter området henting. Området størrelsen må 1000 eller mindre for Windows 2000 og 1500 eller i Windows Server 2003. (Automatic Translation)es_CL.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
56 }, 57 emailAddress: { 58 'default': 'Por favor ingrese un email válido' 259 }, 260 regexp: { 261 'default': 'Por favor ingrese un valor que coincida con el patrón'es_ES.js https://gitlab.com/darmah250903/agung | JavaScript | 389 lines
58 }, 59 emailAddress: { 60 default: 'Por favor introduce un email válido', 270 }, 271 regexp: { 272 default: 'Por favor introduce un valor que coincida con el patrón',VCardResultParser.java https://gitlab.com/taveek/BarcodeScanner | Java | 341 lines
25import java.util.List; 26import java.util.regex.Matcher; 27import java.util.regex.Pattern; 46 @Override 47 public AddressBookParsedResult parse(Result result) { 48 // Although we should insist on the raw text ending with "END:VCARD", there's no reason 62 List<List<String>> phoneNumbers = matchVCardPrefixedField("TEL", rawText, true, false); 63 List<List<String>> emails = matchVCardPrefixedField("EMAIL", rawText, true, false); 64 List<String> note = matchSingleVCardPrefixedField("NOTE", rawText, false, false); 64 List<String> note = matchSingleVCardPrefixedField("NOTE", rawText, false, false); 65 List<List<String>> addresses = matchVCardPrefixedField("ADR", rawText, true, true); 66 List<String> org = matchSingleVCardPrefixedField("ORG", rawText, true, true); 73 List<String> instantMessenger = matchSingleVCardPrefixedField("IMPP", rawText, true, false); 74 return new AddressBookParsedResult(toPrimaryValues(names), 75 null,jquery.validationEngine-en.js https://gitlab.com/kaouech/theme | JavaScript | 206 lines
30 "minSize": { 31 "regex": "none", 32 "alertText": "* Minimum ", 35 "maxSize": { 36 "regex": "none", 37 "alertText": "* Maximum ", 85 "email": { 86 // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 ) 87 "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, 87 "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, 88 "alertText": "* Invalid email address" 89 }, 144 "onlyLetterNumber": { 145 "regex": /^[0-9a-zA-Z]+$/, 146 "alertText": "* No special characters allowed"diffcommit.py https://github.com/reviewboard/reviewboard.git | Python | 393 lines
41 uri_object_key = 'commit_id' 42 uri_object_key_regex = r'[A-Za-z0-9]{1,%s}' % COMMIT_ID_LENGTH 43 65 }, 66 'author_email': { 67 'type': StringFieldType, 67 'type': StringFieldType, 68 'description': 'The e-mail address of the author of this commit.', 69 }, 83 }, 84 'committer_email': { 85 'type': StringFieldType, 85 'type': StringFieldType, 86 'description': 'The e-mail address of the committer of this ' 87 'commit.',jquery.validationEngine-da.js https://gitlab.com/fayimora/pp | JavaScript | 135 lines
24 "maxSize": { 25 "regex": "none", 26 "alertText": "* Maksimum ", 29 "groupRequired": { 30 "regex": "none", 31 "alertText": "* Du skal udfylde mindst et af følgende felter" 62 "creditCard": { 63 "regex": "none", 64 "alertText": "* Ugyldigt kreditkortnummer" 71 "email": { 72 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 73 "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, 97 "onlyNumberSp": { 98 "regex": /^[0-9\ ]+$/, 99 "alertText": "* Kun tal"dojo.js https://github.com/vikram/lisplibraries.git | JavaScript | 158 lines
40 "dropdowntimepicker": "dojo.widget.DropdownTimePicker", 41 "emaillisttextbox": "dojo.widget.InternetTextbox", 42 "emailtextbox": "dojo.widget.InternetTextbox", 61 "integertextbox": "dojo.widget.IntegerTextbox", 62 "ipaddresstextbox": "dojo.widget.InternetTextbox", 63 "layoutcontainer": "dojo.widget.LayoutContainer", 75 "realnumbertextbox": "dojo.widget.RealNumberTextbox", 76 "regexptextbox": "dojo.widget.RegexpTextbox", 77 "repeater": "dojo.widget.Repeater",ValidatorPluginManager.php https://gitlab.com/yousafsyed/easternglamor | PHP | 196 lines
73 'digits' => 'Zend\Validator\Digits', 74 'emailaddress' => 'Zend\Validator\EmailAddress', 75 'explode' => 'Zend\Validator\Explode', 111 'postcode' => 'Zend\I18n\Validator\PostCode', 112 'regex' => 'Zend\Validator\Regex', 113 'sitemapchangefreq' => 'Zend\Validator\Sitemap\Changefreq',server.coffee https://gitlab.com/brandnewcampaign/townsquare-chat | CoffeeScript | 320 lines
1Importer.Slack = class Importer.Slack extends Importer.Base 2 constructor: (name, descriptionI18N, fileTypeRegex) -> 3 super(name, descriptionI18N, fileTypeRegex) 81 selectionUsers = tempUsers.map (user) -> 82 return new Importer.SelectionUser user.id, user.name, user.profile.email, user.deleted, user.is_bot, !user.is_bot 83 selectionChannels = tempChannels.map (channel) -> 113 Meteor.runAsUser startedByUserId, () => 114 existantUser = RocketChat.models.Users.findOneByEmailAddress user.profile.email 115 if existantUser 121 else 122 userId = Accounts.createUser { email: user.profile.email, password: Date.now() + user.name + user.profile.email.toUpperCase() } 123 Meteor.runAsUser userId, () => 140 Meteor.call 'setUserActiveStatus', userId, false 141 #TODO: Maybe send emails? 142 user.rocketId = userIduser.php https://github.com/paulcinelli/kohanajobs.git | PHP | 358 lines
219 ->callback('password', array($this, 'check_password')) 220 ->callback('email', array($this, 'email_available')); 221 236 // @todo set('link', 'full url') 237 ->set('code', Auth::instance()->hash_password($this->email.'+'.$array['email'])) 238 ->set('new_email', $array['email']); 265 { 266 // Email was base64 encoded in URL in order to make it less visible that the URL contains an email address, 267 // not that that would be an immediate security threat. Base64 encoding makes urlencoding not necessary anymore. 284 285 if ($code !== Auth::instance()->hash_password($this->email.'+'.$new_email, Auth::instance()->find_salt($code))) 286 { 302 // In that case, the original confirm_signup link gets invalid automatically because it uses the email as hashed confirmation code. 303 // No problem, though, if the user confirms his new email address, we can as well confirm his account right here. 304 if ( ! $this->has('roles', ORM::factory('role', array('name' => 'user'))))devise.rb https://bitbucket.org/adhitia/dreamdash.git | Ruby | 191 lines
36 # These keys will be downcased upon creating or modifying a user and when used 37 # to authenticate or find a user. Default is :email. 38 config.case_insensitive_keys = [ :email ] 41 # These keys will have whitespace before and after removed upon creating or 42 # modifying a user and when used to authenticate or find a user. Default is :email. 43 config.strip_whitespace_keys = [ :email ] 71 # Defines which key will be used when confirming an account 72 # config.confirmation_keys = [ :email ] 73 91 92 # Regex to use to validate the email address 93 # config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i 109 # Defines which strategy will be used to unlock an account. 110 # :email = Sends an unlock link to the user email 111 # :time = Re-enables login after a certain amount of time (see :unlock_in below)PayerInfoType.java https://gitlab.com/CORP-RESELLER/buttonmanager-sdk-java | Java | 395 lines
37 /** 38 * Email address of payer Character length and limitations: 127 39 * single-byte characters 49 /** 50 * Status of payer's email address 51 */ 74 */ 75 private AddressType address; 76 200 */ 201 public void setAddress(AddressType address) { 202 this.address = address; 370 if (childNode != null && !isWhitespaceNode(childNode)) { 371 this.address = new AddressType(childNode); 372 }registration.js https://gitlab.com/tenstairs/meteor | JavaScript | 276 lines
72 _.each(body.list, function (email) { 73 var emailId = email.mail_id; 74 var subject = email.mail_subject; 103 104 var apiToken = testUtils.deployWithNewEmail(s, email, appName); 105 106 // Check that we got a registration email in our inbox. 107 var registrationEmail = waitForEmail(email, /Set a password/, 108 /set a password/, 60); 207 expectInvalidToken(token); 208 var registrationEmail = waitForEmail(email, /Set a password/, 209 /set a password/, 60); 212 ); 213 if (! emailToken || ! emailToken[1]) { 214 throw new Error('No registration token in email');RequireValidatedEmailPlugin.php https://gitlab.com/BeS/io.schiessle.org | PHP | 281 lines
4 * 5 * Plugin that requires the user to have a validated email address before they 6 * can post notices 127 // TRANS: Client exception thrown when trying to register without providing an e-mail address. 128 throw new ClientException(_m('You must provide an email address to register.')); 129 } 134 /** 135 * Check if a user has a validated email address or has been 136 * otherwise grandfathered in. 226 // TRANS: Plugin description. 227 _m('Disables posting without a validated email address.')); 228 245 if (!$this->validated($user)) { 246 $action->element('div', array('class'=>'error'), _m('You must validate an email address before posting!')); 247 }test_membership.py https://gitlab.com/yamhill/mailman | Python | 274 lines
63 system_preferences.preferred_language)) 64 self.assertEqual(member.address.email, 'aperson@example.com') 65 self.assertEqual(member.list_id, 'test.example.com') 204 system_preferences.preferred_language)) 205 self.assertEqual(cm.exception.email, email) 206 222 system_preferences.preferred_language)) 223 self.assertEqual(cm.exception.email, email.lower()) 224 226 # GL: #237 - When a new address is subscribed, any existing nonmember 227 # subscriptions for this address; or any addresses also controlled by 228 # this user, are deleted. 242 self.assertEqual( 243 {address.email for address in self._mlist.nonmembers.addresses}, 244 {'aperson@example.com',sq_AL.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 379 lines
56 }, 57 emailAddress: { 58 'default': 'Ju lutem vendosni një adresë email të vlefshme' 262 }, 263 regexp: { 264 'default': 'Ju lutem vendosni një vlerë që përputhet me modelin'punycode.js https://gitlab.com/Mirros/cdnjs | JavaScript | 530 lines
442 /** 443 * Converts a Punycode string representing a domain name or an email address 444 * to Unicode. Only the Punycoded parts of the input will be converted, i.e. 447 * @memberOf punycode 448 * @param {String} input The Punycoded domain name or email address to 449 * convert to Unicode. 461 /** 462 * Converts a Unicode string representing a domain name or an email address to 463 * Punycode. Only the non-ASCII parts of the domain name will be converted, 466 * @memberOf punycode 467 * @param {String} input The domain name or email address to convert, as a 468 * Unicode string. 469 * @returns {String} The Punycode representation of the given domain name or 470 * email address. 471 */AttributeForm.jsx https://gitlab.com/blockbuster/react-router-2-with-browserHistory-not-working-public | JSX | 159 lines
56 data-bv-notempty-message="The username is required and cannot be empty" 57 data-bv-regexp="true" data-bv-regexp-regexp="^[a-zA-Z0-9_\.]+$" 58 data-bv-regexp-message="The username can only consist of alphabetical, number, dot and underscore" 69 <div className="form-group"> 70 <label className="col-lg-3 control-label">Email address</label> 71 <div className="col-lg-5"> 71 <div className="col-lg-5"> 72 <input className="form-control" name="email" type="email" data-bv-emailaddress="true" 73 data-bv-emailaddress-message="The input is not a valid email address"/>dev_environment.rst https://github.com/hhamon/symfony-docs.git | ReStructuredText | 252 lines
130(like in the above scenario to ``dev@example.com``). But then you may want 131email sent to some specific email addresses to go through after all, and 132not be redirected (even if it is in the dev environment). This can be done 142 delivery_whitelist: 143 # all email addresses matching these regexes will be delivered 144 # like normal, as well as being sent to dev@example.com 160 <swiftmailer:config> 161 <!-- all email addresses matching these regexes will be delivered 162 like normal, as well as being sent to dev@example.com --> 174 'delivery_whitelist' => [ 175 // all email addresses matching these regexes will be delivered 176 // like normal, as well as being sent to dev@example.com 182In the above example all email messages will be redirected to ``dev@example.com`` 183and messages sent to the ``admin@mydomain.com`` address or to any email address 184belonging to the domain ``specialdomain.com`` will also be delivered as normal.devise.rb https://github.com/welcu/devise.git | Ruby | 164 lines
4 # ==> Mailer Configuration 5 # Configure the e-mail address which will be shown in DeviseMailer. 6 config.mailer_sender = "please-change-me@config-initializers-devise.com" 18 # Configure which keys are used when authenticating an user. By default is 19 # just :email. You can configure it to use [:username, :subdomain], so for 20 # authenticating an user, both parameters are required. Remember that those 24 # should be aborted or not if the value is not present. By default is empty. 25 # config.authentication_keys = [ :email ] 26 77 78 # Regex to use to validate the email address 79 # config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i 92 # Defines which strategy will be used to unlock an account. 93 # :email = Sends an unlock link to the user email 94 # :time = Re-enables login after a certain amount of time (see :unlock_in below)filter.pas https://github.com/rsd/artica-1.5.git | Pascal | 420 lines
101 if RegExpr.Exec(Table[i]) then begin 102 if LowerCase(RegExpr.Match[1])='client_address' then infos.client_address:=RegExpr.Match[2]; 103 if LowerCase(RegExpr.Match[1])='client_name' then infos.client_name:=RegExpr.Match[2]; 104 if LowerCase(RegExpr.Match[1])='recipient' then infos.recipient:=RegExpr.Match[2]; 105 if LowerCase(RegExpr.Match[1])='sender' then infos.sender:=RegExpr.Match[2]; 106 if LowerCase(RegExpr.Match[1])='size' then infos.size:=RegExpr.Match[2]; 181 182 if length(trim(email.ldap_ou))=0 then email.ldap_ou:=ldap.OU_From_eMail(Email.recipient); 183 if length(trim(email.ldap_ou))=0 then begin 233 LOGS:=TLOGS.Create; 234 Email.ldap_uid:=ldap.EmailFromAliase(Email.recipient); 235 if length(trim(email.ldap_ou))=0 then begin 294 sql:='INSERT INTO messages (MessageID,mail_from,mailfrom_domain,mail_to,subject,zDate,received_date,SpamRate,message_path,filter_action,ou,MailSize,SpamInfos,quarantine) '; 295 sql:=sql + 'VALUES("'+ email.md+'","' + email.sender+'","' + email.senderdomain+'","' + email.recipient +'","'+Subject+'",'; 296 sql:=sql + 'DATE_FORMAT(NOW(),''%Y-%m-%d %H:%I:%S''),DATE_FORMAT(NOW(),''%Y-%m-%d %H:%I:%S''),"0","'+email.md+'","' +email.Filter_result+'","' +email.ldap_ou+'","' + email.size + '","NONE","0")';fr_BE.js https://gitlab.com/brownmestizo/design-sandbox | JavaScript | 385 lines
56 }, 57 emailAddress: { 58 'default': 'Veuillez fournir une adresse e-mail valide' 268 }, 269 regexp: { 270 'default': 'Veuillez fournir une valeur correspondant au modèle'jquery.validationEngine-zh_CN.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 167 lines
24 "minSize": { 25 "regex": "none", 26 "alertText": "* 最少 ", 64 "equals": { 65 "regex": "none", 66 "alertText": "* 请输入与上面相同的密码" 69 // credit: jquery.h5validate.js / orefalo 70 "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/, 71 "alertText": "* 无效的电话号码" 73 "email": { 74 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 75 "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, 155 "dateTimeFormat": { 156 "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/, 157 "alertText": "* 无效的日期或时间格式",es_ES.js https://gitlab.com/israt12/AtomicProject_IsratJerin_146574_CRUD_Create_Read_update_delete | JavaScript | 353 lines
43 }, 44 emailAddress: { 45 'default': 'Por favor introduce un email válido' 247 }, 248 regexp: { 249 'default': 'Por favor introduce un valor que coincida con el patrón'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"mode-golang.js https://gitlab.com/itlboy/yii2-starter-installed | JavaScript | 406 lines
10 token : "comment.doc.tag", 11 regex : "@[\\w\\d_]+" // TODO: fix email addresses 12 }, 25 token : "comment.doc.tag.storage.type", 26 regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b" 27 }; 32 token : "comment.doc", // doc comment 33 regex : "\\/\\*(?=\\*)", 34 next : start 40 token : "comment.doc", // closing comment 41 regex : "\\*\\/", 42 next : start 84 token : "comment", 85 regex : "\\/\\/.*$" 86 },class.client.php https://gitlab.com/billyprice1/osTicket | PHP | 481 lines
18abstract class TicketUser 19implements EmailContact, ITicketUser, TemplateVariable { 20 48 return array( 49 'email' => __('Email Address'), 50 'name' => array('class' => 'PersonsName', 'desc' => __('Full Name')), 73 function getId() { return ($this->user) ? $this->user->getId() : null; } 74 function getEmail() { return ($this->user) ? $this->user->getEmail() : null; } 75 113 114 static function lookupByEmail($email) { 115 115 116 if (!($user=User::lookup(array('emails__address' => $email)))) 117 return null;test_x509name.rb https://bitbucket.org/nicksieger/jruby.git | Ruby | 266 lines
10 OpenSSL::ASN1::ObjectId.register( 11 "1.2.840.113549.1.9.1", "emailAddress", "emailAddress") 12 OpenSSL::ASN1::ObjectId.register( 83 ary = name.to_a 84 assert_equal("/DC=org/DC=ruby-lang/CN=GOTOU Yuuzou/emailAddress=gotoyuzo@ruby-lang.org/serialNumber=123", name.to_s) 85 assert_equal("DC", ary[0][0]) 87 assert_equal("CN", ary[2][0]) 88 assert_equal("emailAddress", ary[3][0]) 89 assert_equal("serialNumber", ary[4][0]) 144 ["CN", "GOTOU Yuuzou"], 145 ["emailAddress", "gotoyuzo@ruby-lang.org"], 146 ], 172 ["1.2.840.113549.1.9.1", "gotoyuzo@ruby-lang.org"], 173 ["emailAddress", "gotoyuzo@ruby-lang.org"], 174 ],FMModelVerify_email.php https://gitlab.com/hunt9310/ras | PHP | 119 lines
2 3class FMModelVerify_email { 4 //////////////////////////////////////////////////////////////////////////////////////// 20 //////////////////////////////////////////////////////////////////////////////////////// 21 function setValidation($gid, $md5, $email) { 22 global $wpdb; 22 global $wpdb; 23 $query = $wpdb->prepare("SELECT * FROM ".$wpdb->prefix."formmaker_submits WHERE group_id='%d' AND element_label= 'verifyInfo' AND element_value REGEXP 'verified'", $gid); 24 $verified_row = $wpdb->get_row($query); 26 if($verified_row) 27 $view = __('Your email address is already verified.', 'form_maker'); 28 else 29 { 30 $query = $wpdb->prepare("SELECT * FROM ".$wpdb->prefix."formmaker_submits WHERE group_id='%d' AND element_label REGEXP 'verifyInfo' AND element_value NOT REGEXP 'verified'", $gid); 31 $rows = $wpdb->get_results($query);emailaddress.js https://gitlab.com/sc15lar/algorithmsproject | JavaScript | 495 lines
149goog.format.EmailAddress.LOCAL_PART_ = 150 new RegExp('^' + goog.format.EmailAddress.LOCAL_PART_REGEXP_STR_ + '$'); 151 157goog.format.EmailAddress.DOMAIN_PART_ = 158 new RegExp('^' + goog.format.EmailAddress.DOMAIN_PART_REGEXP_STR_ + '$'); 159 164 */ 165goog.format.EmailAddress.EMAIL_ADDRESS_ = new RegExp( 166 '^' + goog.format.EmailAddress.LOCAL_PART_REGEXP_STR_ + '@' + 204 */ 205goog.format.EmailAddress.prototype.setAddress = function(address) { 206 this.address = address; 284 * Checks if the provided string is a valid email address. Supports both 285 * simple email addresses (address specs) and addresses that contain display 286 * names.jquery.validationEngine-de.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 135 lines
29 "groupRequired": { 30 "regex": "none", 31 "alertText": "* Sie müssen mindestens eines dieser Felder ausfüllen" 58 "equals": { 59 "regex": "none", 60 "alertText": "* Felder stimmen nicht überein" 62 "creditCard": { 63 "regex": "none", 64 "alertText": "* Ungültige Kreditkartennummer" 71 "email": { 72 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 73 "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, 102 "onlyLetterNumber": { 103 "regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/, 104 "alertText": "* Keine Sonderzeichen erlaubt"jquery.validationEngine-de.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 134 lines
19 "maxSize": { 20 "regex": "none", 21 "alertText": "* Maximal ", 24 "groupRequired": { 25 "regex": "none", 26 "alertText": "* You must fill one of the following fields" 57 "creditCard": { 58 "regex": "none", 59 "alertText": "* Ungültige Kreditkartennummer" 66 "email": { 67 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 68 "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, 93 "onlyLetterSp": { 94 "regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/, 95 "alertText": "* Nur Buchstaben erlaubt"collapse.html https://gitlab.com/x33n/formvalidation | HTML | 264 lines
37 <div class="form-group"> 38 <label class="col-lg-3 control-label">Email address</label> 39 <div class="col-lg-5"> 39 <div class="col-lg-5"> 40 <input type="text" class="form-control" name="email" /> 41 </div> 170 }, 171 regexp: { 172 regexp: /^[A-Z\s]+$/i, 185 }, 186 regexp: { 187 regexp: /^[A-Z\s]+$/i, 210 validators: { 211 emailAddress: { 212 message: 'The input is not a valid email address'forms.py https://github.com/chengwang/kitsune.git | Python | 195 lines
24EMAIL_REQUIRED = _lazy(u'Email address is required.') 25EMAIL_SHORT = _lazy(u'Email address is too short (%(show_value)s characters). ' 26 'It must be at least %(limit_value)s characters.') 26 'It must be at least %(limit_value)s characters.') 27EMAIL_LONG = _lazy(u'Email address is too long (%(show_value)s characters). ' 28 'It must be %(limit_value)s characters or less.') 49 'max_length': USERNAME_LONG}) 50 email = forms.EmailField(label=_lazy(u'Email address:'), 51 error_messages={'required': EMAIL_REQUIRED, 178 """A simple form that requires an email address.""" 179 email = forms.EmailField(label=_lazy(u'Email address:')) 180 184 not the current user's email.""" 185 email = forms.EmailField(label=_lazy(u'Email address:')) 186Validation.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 401 lines
49 if ($valid) { 50 $oldEmail = $user->getEmail(); 51 $auth->doGetUserInfo($user); 52 if ($user->getEmail() != $oldEmail) { 53 // FIXME OJS requires email addresses to be unique; if changed email already exists, ignore 54 if ($userDao->userExistsByEmail($user->getEmail())) { 54 if ($userDao->userExistsByEmail($user->getEmail())) { 55 $user->setEmail($oldEmail); 56 } 257 258 $suggestion = String::regexp_replace('/[^a-zA-Z0-9_-]/', '', String::strtolower($initial . $lastName)); 259 $userDao =& DAORegistry::getDAO('UserDAO');mail_global.py https://gitlab.com/yaojian/RenjuAI | Python | 295 lines
15 self.__register_macro_define() 16 self.__register_regex() 17 self.__register_etc(etc_file) 40 self.MAIL_PROTO_WEBMAIL = 'webmail' 41 # macro for mail address node 42 self.IN_DEGREE_AS_TO = 2 54 55 def __register_regex(self): 56 self.email_reg = re.compile('[^@|\s]+@[^@]+\.[^@|\s]+') 56 self.email_reg = re.compile('[^@|\s]+@[^@]+\.[^@|\s]+') 57 self.email_reg_2 = re.compile(u"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-.]+)+") 58 self.email_addr_ignore = re.compile(u'undisclosed-recipients|Mail Delivery Subsystem|Mail Delivery System', 59 flags=re.IGNORECASE) 60 self.email_html_br_tag = re.compile(u"<br.*?>|<p.*?>", flags=re.IGNORECASE | re.DOTALL) 61 self.email_html_tag = re.compile(u'<style.*?style>|<script.*?script>|<.*?>|[\r\t]{2,}| ', flags=re.IGNORECASE | re.DOTALL)setting.rb https://github.com/lzap/foreman.git | Ruby | 370 lines
17 BLANK_ATTRS = %w{ host_owner trusted_hosts login_delegation_logout_url root_pass default_location default_organization websockets_ssl_key websockets_ssl_cert oauth_consumer_key oauth_consumer_secret login_text oidc_audience oidc_issuer oidc_algorithm 18 smtp_address smtp_domain smtp_user_name smtp_password smtp_openssl_verify_mode smtp_authentication sendmail_arguments sendmail_location http_proxy http_proxy_except_list default_locale default_timezone ssl_certificate ssl_ca_file ssl_priv_key default_pxe_item_global default_pxe_item_local oidc_jwks_url instance_title } 19 ARRAY_HOSTNAMES = %w{trusted_hosts} 23 REGEXP_ATTRS = %w{remote_addr} 24 EMAIL_ATTRS = %w{administrator email_reply_address} 25 NOT_STRIPPED = %w{} 48 validate :validate_host_owner, :if => proc { |s| s.name == "host_owner" } 49 validates :value, :format => { :with => Resolv::AddressRegex }, :if => proc { |s| IP_ATTRS.include? s.name } 50 validates :value, :regexp => true, :if => proc { |s| REGEXP_ATTRS.include? s.name } 53 validates :value, :array_hostnames_ips => true, :if => proc { |s| ARRAY_HOSTNAMES.include? s.name } 54 validates :value, :email => true, :if => proc { |s| EMAIL_ATTRS.include? s.name } 55 before_validation :set_setting_type_from_value 224 def self.convert_array_to_regexp(array, regexp_options = {}) 225 Regexp.new(array.map { |string| regexp_expand_wildcard_string(string, regexp_options) }.join('|')) 226 endi18n.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']); 280LinkifyTest.java https://gitlab.com/brian0218/rk3288_r-box_android4.4.2_sdk | Java | 340 lines
29import java.util.Locale; 30import java.util.regex.Matcher; 31import java.util.regex.Pattern; 84 85 assertTrue(Linkify.addLinks(spannable, Linkify.EMAIL_ADDRESSES)); 86 spans = spannable.getSpans(0, spannable.length(), URLSpan.class); 111 tv.setText(spannable); 112 assertTrue(Linkify.addLinks(tv, Linkify.EMAIL_ADDRESSES)); 113 spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class);validator.js https://gitlab.com/ceritadikit/si_gudang | JavaScript | 411 lines
12 email_illegalChars = /[\(\)\<\>\,\;\:\\\/\"\[\]]/, 13 email_filter = /^.+@.+\..{2,6}$/; // exmaple email "steve@s-i.photo" 14 26 number : 'not a number', 27 email : 'email address is invalid', 28 email_repeat : 'emails do not match', 72 email : function(a){ 73 if ( !email_filter.test( a ) || a.match( email_illegalChars ) ){ 74 alertTxt = a ? message.email : message.empty; 120 if( pattern ){ 121 var regex, jsRegex; 122 switch( pattern ){ 135 try{ 136 jsRegex = new RegExp(regex).test(a); 137 if( a && !jsRegex )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'Ext.form.VTypes.html https://github.com/ktk070/Anopier.git | HTML | 54 lines
31'This field should o...</div><div class="long">The error text to display when the alphanumeric validation function returns false. Defaults to: 32<tt>'This field should only contain letters, numbers and _'</tt></div></div></td><td class="msource">VTypes</td></tr><tr class="property-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.form.VTypes-emailMask"></a><b><a href="source/VTypes.html#prop-Ext.form.VTypes-emailMask">emailMask</a></b> : RegExp<div class="mdesc"><div class="short">The keystroke filter mask to be applied on email input. See the email method for 33information about more complex ema...</div><div class="long">The keystroke filter mask to be applied on email input. See the <a href="output/Ext.form.VTypes.html#Ext.form.VTypes-email" ext:member="email" ext:cls="Ext.form.VTypes">email</a> method for 34information about more complex email validation. Defaults to: 35<tt>/[a-z0-9_\.\-@]/i</tt></div></div></td><td class="msource">VTypes</td></tr><tr class="property-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.form.VTypes-emailText"></a><b><a href="source/VTypes.html#prop-Ext.form.VTypes-emailText">emailText</a></b> : String<div class="mdesc"><div class="short">The error text to display when the email validation function returns false. Defaults to: 36'This field should be an e-...</div><div class="long">The error text to display when the email validation function returns false. Defaults to: 42 : 43 Boolean<div class="mdesc"><div class="short">The function used to validate alphanumeric values</div><div class="long">The function used to validate alphanumeric values<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>value</code> : String<div class="sub-desc">The value</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc">true if the RegExp test passed, and false if not.</div></li></ul></div></div></div></td><td class="msource">VTypes</td></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.form.VTypes-email"></a><b><a href="source/VTypes.html#method-Ext.form.VTypes-email">email</a></b>( <code>String value</code> ) 44 : 48this function can be overridden if a more comprehensive validation scheme is desired. See the validation 49section of the <a href="http://en.wikipedia.org/wiki/E-mail_address">Wikipedia article on email addresses</a> 50for additional information. This implementation is intended to validate the following emails:<tt> 51'barney@example.de', 'barney.rubble@example.com', 'barney-rubble@example.coop', 'barney+rubble@example.com' 52</tt>.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>value</code> : String<div class="sub-desc">The email address</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc">true if the RegExp test passed, and false if not.</div></li></ul></div></div></div></td><td class="msource">VTypes</td></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.form.VTypes-url"></a><b><a href="source/VTypes.html#method-Ext.form.VTypes-url">url</a></b>( <code>String value</code> ) 53 :de_DE.js https://gitlab.com/danielc103/danielc103Website | JavaScript | 384 lines
56 }, 57 emailAddress: { 58 'default': 'Bitte gültige Emailadresse eingeben' 267 }, 268 regexp: { 269 'default': 'Bitte Wert eingeben, der der Maske entspricht'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'admin_users_spec.rb https://gitlab.com/habukagumba/gitlab-ce | Ruby | 510 lines
113 expect(email.subject).to have_content('Account was created') 114 expect(email.text_part.body).to have_content(user.email) 115 expect(email.text_part.body).to have_content('password') 129 context 'with new users set to external enabled' do 130 context 'with regex to match internal user email address set', :js do 131 before do 430 431 expect(page).to have_content("Secondary email: #{secondary_email.email}") 432 432 433 accept_confirm { find("#remove_email_#{secondary_email.id}").click } 434 434 435 expect(page).not_to have_content(secondary_email.email) 436 endemailNotificationConfiguration.php https://github.com/solusee/OrangeEarthstoneHRM.git | PHP | 207 lines
25 26$allNotifications = array( EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_PENDING_APPROVAL => $lang_Admin_ENS_LeaveApplications, 27 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_APPROVED => $lang_Admin_ENS_LeaveApprovals, 27 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_APPROVED => $lang_Admin_ENS_LeaveApprovals, 28 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_CANCELLED => $lang_Admin_ENS_LeaveCancellations, 29 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_REJECTED => $lang_Admin_ENS_LeaveRejections, 29 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_LEAVE_REJECTED => $lang_Admin_ENS_LeaveRejections, 30 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_JOB_APPLIED => $lang_Admin_ENS_JobApplications, 31 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_SEEK_HIRE_APPROVAL => $lang_Admin_ENS_SeekHireApproval, 31 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_SEEK_HIRE_APPROVAL => $lang_Admin_ENS_SeekHireApproval, 32 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_HIRE_TASKS => $lang_Admin_ENS_HiringTasks, 33 EmailNotificationConfiguration::EMAILNOTIFICATIONCONFIGURATION_NOTIFICATION_TYPE_HIRE_APPROVED => $lang_Admin_ENS_HiringApproved, 40 $notificationObj = current($editArr); 41 $notificationEmail = $notificationObj->getEmail(); 42form-validation.js https://gitlab.com/kaouech/theme | JavaScript | 548 lines
151 notEmpty: { 152 message: 'The email address is required and cannot be empty' 153 }, 265 notEmpty: { 266 message: 'The email address is required and can\'t be empty' 267 }, 268 emailAddress: { 269 message: 'The input is not a valid email address' 270 } 482 notEmpty: { 483 message: 'The email address is required and can\'t be empty' 484 }, 485 emailAddress: { 486 message: 'The input is not a valid email address' 487 }id_ID.ts https://gitlab.com/darmah250903/agung | TypeScript | 379 lines
52 }, 53 emailAddress: { 54 default: 'Silahkan isi alamat email yang valid', 224 mac: { 225 default: 'Silahkan isi MAC address yang valid', 226 }, 264 }, 265 regexp: { 266 default: 'Silahkan isi nilai yang cocok dengan pola',be_FR.js https://gitlab.com/israt12/AtomicProject_IsratJerin_146574_CRUD_Create_Read_update_delete | JavaScript | 353 lines
43 }, 44 emailAddress: { 45 'default': 'Veuillez fournir une adresse mail valide' 247 }, 248 regexp: { 249 'default': 'Veuillez fournir une valeur correspondant au modèle'forms.py https://bitbucket.org/rattray/anonbox.git | Python | 218 lines
13 """ 14 username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^[\w.@+-]+$', 15 help_text = _("Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only."), 107class PasswordResetForm(forms.Form): 108 email = forms.EmailField(label=_("E-mail"), max_length=75) 109 122 123 def save(self, domain_override=None, email_template_name='registration/password_reset_email.html', 124 use_https=False, token_generator=default_token_generator, from_email=None, request=None): 137 c = { 138 'email': user.email, 139 'domain': domain, 146 send_mail(_("Password reset on %s") % site_name, 147 t.render(Context(c)), from_email, [user.email]) 148jquery.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"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"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 },html.php https://github.com/error10/Ushahidi_Web.git | PHP | 428 lines
143 * 144 * @param string email address 145 * @return string 146 */ 147 public static function email($email) 148 { 168 * 169 * @param string email address to send to 170 * @param string link text 181 { 182 // Extract the parameters from the email address 183 list ($email, $params) = explode('?', $email, 2); 196 197 // Title defaults to the encoded email address 198 empty($title) and $title = $safe;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));groups.html https://github.com/weissms/owb-mirror.git | HTML | 632 lines
191CLASS="QUOTE" 192>"User RegExp"</SPAN 193> fields. 195CLASS="QUOTE" 196>"User RegExp"</SPAN 197> allows you to automatically 203><P 204>Users whose email addresses match the regular expression 205 will automatically be members of the group as long as their 205 will automatically be members of the group as long as their 206 email addresses continue to match the regular expression.</P 207><DIV 311><P 312>The user's email address can match a regular expression 313 that the group specifies to automatically grant membership toformEditor.rst https://github.com/TYPO3/TYPO3.CMS.git | ReStructuredText | 244 lines
93 50: 94 value: EmailAddress 95 label: formEditor.elements.TextMixin.editor.validators.EmailAddress.label 164 40: 165 identifier: EmailAddress 166 editors: 169 templateName: Inspector-CollectionElementHeaderEditor 170 label: formEditor.elements.TextMixin.validators.EmailAddress.editor.header.label 171 9999: 229 200: 230 identifier: regex 231 templateName: Inspector-TextEditor 231 templateName: Inspector-TextEditor 232 label: formEditor.elements.TextMixin.validators.RegularExpression.editor.regex.label 233 fieldExplanationText: formEditor.elements.TextMixin.validators.RegularExpression.editor.regex.fieldExplanationTextvalidations.js https://bitbucket.org/srogerf/javascript.git | JavaScript | 148 lines
40 /** 41 * @property {String} emailMessage 42 * The default error message used when an email validation fails 43 */ 44 emailMessage: 'is not a valid email address', 45 46 /** 47 * @property {RegExp} emailRe 48 * The regular expression used to validate email addresses 99 * @param {Object} config Config object 100 * @param {String} email The email address 101 * @return {Boolean} True if the value passes validation 102 */ 103 email: function(config, email) { 104 return Ext.data.validations.emailRe.test(email);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 notforms.py https://gitlab.com/unofficial-mirrors/edx-platform | Python | 330 lines
55 token_generator=default_token_generator, 56 from_email=configuration_helpers.get_value('email_from_address', settings.DEFAULT_FROM_EMAIL), 57 request=None 83 email = loader.render_to_string(email_template_name, context) 84 send_mail(subject, email, from_email, [user.email]) 85 116 if settings.FEATURES.get("ENABLE_UNICODE_USERNAME"): 117 username_re = r"^{regex}$".format(regex=settings.USERNAME_REGEX_PARTIAL) 118 flags = re.UNICODE 276 if settings.REGISTRATION_EMAIL_PATTERNS_ALLOWED is not None: 277 # This Open edX instance has restrictions on what email addresses are allowed. 278 allowed_patterns = settings.REGISTRATION_EMAIL_PATTERNS_ALLOWED 289 _( 290 "It looks like {email} belongs to an existing account. Try again with a different email address." 291 ).format(email=email)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ı"utils.js https://github.com/lowiebenoot/forkcms.git | JavaScript | 473 lines
116 /** 117 * Is the value inside the element a valid email address 118 * 121 */ 122 isEmail: function(element) 123 { 123 { 124 var regexp = /^[a-z0-9!#\$%&'*+-\/=?^_`{|}\.~]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i; 125 return regexp.test(element.val()); 157 { 158 var regexp = /^((http|ftp|https):\/{2})?(([0-9a-zA-Z_-]+\.)+[0-9a-zA-Z]+)((:[0-9]+)?)((\/([~0-9a-zA-Z\#%@\.\/_-]+)?(\?[0-9a-zA-Z%@\/&=_-]+)?)?)$/i; 159 return regexp.test(element.val()); 254 if(value == undefined) return ''; 255 return value.replace(new RegExp(needle, 'g'), replacement); 256 },eu_ES.ts https://gitlab.com/darmah250903/agung | TypeScript | 379 lines
52 }, 53 emailAddress: { 54 default: 'Mesedez e-posta egoki bat sartu', 264 }, 265 regexp: { 266 default: 'Mesedez, patroiarekin bat datorren balio bat sartu',xml_js_filter.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 431 lines
19 // {{{ add filters 20 // email 21 var regEmail = /^[\w-]+((?:\.|\+|\~)[\w-]+)*@[\w-]+(\.[\w-]+)+$/; 22 this.cast('ADD_RULE', ['email', regEmail]); 23 this.cast('ADD_RULE', ['email_address', regEmail]); 24 35 // korean 36 var regKor = new RegExp('^[\uAC00-\uD7A3]*$'); 37 this.cast('ADD_RULE', ['korean', regKor]); 39 // korean_number 40 var regKorNum = new RegExp('^[\uAC00-\uD7A30-9]*$'); 41 this.cast('ADD_RULE', ['korean_number', regKorNum]); 127 if(name.substr(0,1) == '^') { 128 names = fields.match( (new RegExp('^'+regex_quote(name.substr(1))+'.*$','gm')) ); 129 } else {IUPAC.pm https://gitlab.com/pooja043/Globus_Docker_3 | Perl | 560 lines
36 # Get a regular expression that matches all possible sequences 37 my $regexp = $iupac->regexp(); 38 142reponsive experts will be able look at the problem and quickly 143address it. Please include a thorough description of the problem 144with code and data examples if at all possible. 155 156Email amackey-at-virginia.edu 157 507 508=head2 regexp 509 509 510 Title : regexp 511 Usage : my $re = $iupac->regexp();punycode.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 440 lines
375/** 376 * Converts a Punycode string representing a domain name or an email address 377 * to Unicode. Only the Punycoded parts of the input will be converted, i.e. 380 * @memberOf punycode 381 * @param {String} input The Punycoded domain name or email address to 382 * convert to Unicode. 394/** 395 * Converts a Unicode string representing a domain name or an email address to 396 * Punycode. Only the non-ASCII parts of the domain name will be converted, 399 * @memberOf punycode 400 * @param {String} input The domain name or email address to convert, as a 401 * Unicode string. 402 * @returns {String} The Punycode representation of the given domain name or 403 * email address. 404 */InternetTest.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 120 lines
40 /** 41 * @link http://stackoverflow.com/questions/12026842/how-to-validate-an-email-address-in-php 42 * 45 */ 46 public function testEmailIsValid($locale) 47 { 49 $pattern = '/^(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){255,})(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){65,}@)(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22))(?:\\.(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-+[a-z0-9]+)*\\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-+[a-z0-9]+)*)|(?:\\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\\]))$/iD'; 50 $emailAddress = $this->faker->email(); 51 $this->assertRegExp($pattern, $emailAddress); 62 $username = $this->faker->username(); 63 $this->assertRegExp($pattern, $username); 64 } 117 { 118 $this->assertRegExp('/^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$/i', Internet::macAddress()); 119 }jquery.validationEngine-nl.js https://gitlab.com/Gashler/sg | JavaScript | 137 lines
29 "groupRequired": { 30 "regex": "none", 31 "alertText": "* Vul één van de volgende velden in" 33 "min": { 34 "regex": "none", 35 "alertText": "* Minimale waarde is " 67 // credit: jquery.h5validate.js / orefalo 68 "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/, 69 "alertText": "* Ongeldig telefoonnummer" 71 "email": { 72 // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ 73 // Replaced incredible long regex with shorter and working one! :) 107 "onlyLetterNumber": { 108 "regex": /^[0-9a-zA-Z]+$/, 109 "alertText": "* Geen vreemde tekens toegestaan"mode-dot.js https://gitlab.com/IvettGeorge/tecnicassanacion | JavaScript | 417 lines
50 token : "comment.doc.tag", 51 regex : "@[\\w\\d_]+" // TODO: fix email addresses 52 }, 65 token : "comment.doc.tag.storage.type", 66 regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b" 67 }; 72 token : "comment.doc", // doc comment 73 regex : "\\/\\*(?=\\*)", 74 next : start 80 token : "comment.doc", // closing comment 81 regex : "\\*\\/", 82 next : start 112 token : "comment", 113 regex : /\/\/.*$/ 114 }, {en_US.js https://gitlab.com/darmah250903/agung | JavaScript | 389 lines
58 }, 59 emailAddress: { 60 default: 'Please enter a valid email address', 209 ip: { 210 default: 'Please enter a valid IP address', 211 ipv4: 'Please enter a valid IPv4 address', 211 ipv4: 'Please enter a valid IPv4 address', 212 ipv6: 'Please enter a valid IPv6 address', 213 }, 230 mac: { 231 default: 'Please enter a valid MAC address', 232 }, 270 }, 271 regexp: { 272 default: 'Please enter a value matching the pattern',mode-redshift.js https://gitlab.com/IvettGeorge/tecnicassanacion | JavaScript | 360 lines
10 token : "comment.doc.tag", 11 regex : "@[\\w\\d_]+" // TODO: fix email addresses 12 }, 25 token : "comment.doc.tag.storage.type", 26 regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b" 27 }; 32 token : "comment.doc", // doc comment 33 regex : "\\/\\*(?=\\*)", 34 next : start 40 token : "comment.doc", // closing comment 41 regex : "\\*\\/", 42 next : start 157 "bpcharcmp|btrim|bttext_pattern_cmp|char_length|character_length|charindex|chr|concat|crc32|func_sha1|get_bit|get_byte|initcap|left|right|len|length|" + 158 "lower|lpad|rpad|ltrim|md5|octet_length|position|quote_ident|quote_literal|regexp_count|regexp_instr|regexp_replace|regexp_substr|repeat|replace|replicate|" + 159 "reverse|rtrim|set_bit|set_byte|split_part|strpos|strtol|substring|textlen|to_ascii|to_hex|translate|trim|upper|json_array_length|json_extract_array_element_text|" +filepost_com.php https://gitlab.com/billyprice1/rapidleech | PHP | 269 lines
22 is_present($this->page, "File not found"); 23 is_present($this->page, "This IP address has been blocked on our service due to some fraudulent activity."); 24 $this->Cookies = GetCookiesArr($this->page); 90 91 // Let's play with the regex 92 if (!preg_match('@"js":\{"(\w+)":\{?"([^"]+)"?:?"?([^|\r|\n|"]+)?"\}@i', $check, $match)) html_error("Error: Unknown Post Data [FREE] page response!"); 129 130 $email = ($_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc ["filepost_com"] ["user"]); 131 $password = ($_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc ["filepost_com"] ["pass"]); 131 $password = ($_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc ["filepost_com"] ["pass"]); 132 if (empty($email) || empty($password)) html_error("Login failed, username or password is empty!"); 133 134 $post = array(); 135 $post['email'] = $email; 136 $post['password'] = $password;payments_validators.cc https://github.com/chromium/chromium.git | C++ | 199 lines
29 String* optional_error_message) { 30 auto* regexp = MakeGarbageCollected<ScriptRegexp>( 31 "^[A-Z]{3}$", kTextCaseUnicodeInsensitive); 46 String* optional_error_message) { 47 auto* regexp = MakeGarbageCollected<ScriptRegexp>("^-?[0-9]+(\\.[0-9]+)?$", 48 kTextCaseSensitive); 76bool PaymentsValidators::IsValidShippingAddress( 77 const payments::mojom::blink::PaymentAddressPtr& address, 78 String* optional_error_message) { 146 (!errors->hasShippingAddress() || 147 IsValidAddressErrorsFormat(errors->shippingAddress(), 148 optional_error_message)); 155 // https://www.w3.org/TR/payment-method-id/#dfn-syntax-of-a-standardized-payment-method-identifier 156 auto* regexp = MakeGarbageCollected<ScriptRegexp>( 157 "^[a-z]+[0-9a-z]*(-[a-z]+[0-9a-z]*)*$", kTextCaseSensitive);Fastq.pm https://gitlab.com/pooja043/Globus_Docker_2 | Perl | 236 lines
73reponsive experts will be able look at the problem and quickly 74address it. Please include a thorough description of the problem 75with code and data examples if at all possible. 86 87Email - avc@sanger.ac.uk 88 220 Function: The default Fastq ID parser for Fastq.pm 221 Returns $1 from applying the regexp /^>\s*(\S+)/ 222 to $header.login.js https://gitlab.com/kaouech/theme | JavaScript | 197 lines
63 name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); 64 var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); 65 return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); 126 rules : { 127 email : { 128 required : true 148 }, 149 address : { 150 minlength : 2, 159 }, 160 email : { 161 required : truevapid-helper.js https://gitlab.com/zautre/dw-push | JavaScript | 301 lines
99 { 100 log.error( 'The subject value must be a string containing a URL or mailto: address. {0} ', subject ); 101 } 153 * @param {string} audience This must be the origin of the push service. 154 * @param {string} subject This should be a URL or a 'mailto:' email address. 155 * @param {string} publicKey The VAPID public key. 238 * @param {string} audience This must be the origin of the push service. 239 * @param {string} subject This should be a URL or a 'mailto:' email address. 240 * @param {string} publicKey The VAPID public key. 257 258 let urlPattern = new RegExp( '^(https?:\\/\\/)?'+ // protocol 259 '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|'+ // domain name 259 '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|'+ // domain name 260 '((\\d{1,3}\\.){3}\\d{1,3}))'+ // OR ip (v4) address 261 '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // port and pathProjectTest.java https://gitlab.com/vectorci/tfs-plugin | Java | 269 lines
58 59 private UserLookup createMockUserLookup(String accountName, String displayName, String emailAddress) { 60 UserLookup userLookup = mock(UserLookup.class); 63 final String id = accountName.replace('\\', '_').replace('/', '_').replace('<','_') 64 .replace('>','_'); // 4 replace() still faster than regex 65 // end stolen portion 67 when(user.getDisplayName()).thenReturn(displayName); 68 when(user.getProperty(Mailer.UserProperty.class)).thenReturn(new Mailer.UserProperty(emailAddress)); 69 86 final String userDisplayName = "Leeroy Jenkins"; 87 final String userEmailAddress = "leeroy.jenkins@example.com"; 88 final UserLookup userLookup = createMockUserLookup(userString, userDisplayName, userEmailAddress); 96 final String actualEmailAddress = author.getProperty(Mailer.UserProperty.class).getAddress(); 97 assertEquals("The author's e-mail address was incorrect", userEmailAddress, actualEmailAddress); 98 assertEquals("The date was incorrect", juneTwentySeventh.getTime(), actual.getDate());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 {