PageRenderTime 379ms queryFilters 1ms Sphinxql 189ms app.CodeModel.GetByIds 79ms findMatchingLines 90ms GetByIds 169ms meta 0ms repositoryFilters 31ms languageFilters 6ms sourceFilters 5ms

42,301 results for 'email address regex' (379 ms)

Source

Language

Repository

validators.py https://bitbucket.org/schlamar/gbottle-wiki | Python | 2,726 lines
815        >>> IS_EMAIL()('abc+def.com')        # no @
816        ('abc+def.com', 'enter a valid email address')
817        >>> IS_EMAIL()('abc@def.x')          # one-char TLD
827        >>> IS_EMAIL()('NotAnEmail')         # missing @
828        ('NotAnEmail', 'enter a valid email address')
829        >>> IS_EMAIL()('abc@NotAnEmail')     # missing TLD
829        >>> IS_EMAIL()('abc@NotAnEmail')     # missing TLD
830        ('abc@NotAnEmail', 'enter a valid email address')
831        >>> IS_EMAIL()('customer/department@example.com')
2566
2567    IPv4 regex taken from: http://regexlib.com/REDetails.aspx?regexp_id=1411
2568
2578                  None (default): indifferent
2579                  True (enforce): query address must match localhost address
2580                                  (127.0.0.1)
2010-10-17-npes-3.bxm https://github.com/Altreus/podcats.git | Unknown | 291 lines
36job.[/fn], including the [c]\d[/c] shortcut for "a digit". Because this is grep,
37we return every line for which this regex gives a "yes" response. The regex is
38asking for "a digit". Grep obliges by showing us which lines have at least one
156
157This works fine for many email addresses, including ones with a plus in them,
158which is becoming more and more common these days because Google Mail uses it
163
164The list of problems with this regex is extensive, because the RFC on email
165addresses is nightmarish.
167regex you need in order to validate an email address correctly. If you don't use
168it, your email address regex will certainly come up with false negatives[fn]At a
169previous job, we had an issue where we took details from another company. One
169previous job, we had an issue where we took details from another company. One
170woman's email address was, fairly, her name, but her name had an apostrophe in
171it, being French or so. Anyway, the email validator would not accept the
validation.py https://bitbucket.org/tbatterii/tw2core | Python | 502 lines
409
410class RegexValidator(Validator):
411    """
427
428class EmailValidator(RegexValidator):
429    """
429    """
430    Confirm the value is a valid email address.
431    """
432    msgs = {
433        'badregex': ('bademail', 'Must be a valid email address'),
434    }
461    msgs = {
462        'badipaddress': 'Must be a valid IP address',
463        'badnetblock': 'Must be a valid IP network block',
validation.py https://bitbucket.org/dplepage/tw2.core | Python | 497 lines
404
405class RegexValidator(Validator):
406    """
422
423class EmailValidator(RegexValidator):
424    """
424    """
425    Confirm the value is a valid email address.
426    """
427    msgs = {
428        'badregex': ('bademail', 'Must be a valid email address'),
429    }
456    msgs = {
457        'badipaddress': 'Must be a valid IP address',
458        'badnetblock': 'Must be a valid IP network block',
validation.py https://bitbucket.org/ralphbean/tw2.core | Python | 597 lines
444
445class RegexValidator(Validator):
446    """
463
464class EmailValidator(RegexValidator):
465    """
465    """
466    Confirm the value is a valid email address.
467    """
468    msgs = {
469        'badregex': ('bademail', _('Must be a valid email address')),
470    }
497    msgs = {
498        'badipaddress': _('Must be a valid IP address'),
499        'badnetblock': _('Must be a valid IP network block'),
validation.py https://bitbucket.org/paj/tw2core | Python | 555 lines
404
405class RegexValidator(Validator):
406    """
422
423class EmailValidator(RegexValidator):
424    """
424    """
425    Confirm the value is a valid email address.
426    """
427    msgs = {
428        'badregex': ('bademail', 'Must be a valid email address'),
429    }
456    msgs = {
457        'badipaddress': 'Must be a valid IP address',
458        'badnetblock': 'Must be a valid IP network block',
validation.py https://bitbucket.org/toshio/tw2.core-toshio | Python | 488 lines
391
392class RegexValidator(Validator):
393    """
409
410class EmailValidator(RegexValidator):
411    """
411    """
412    Confirm the value is a valid email address.
413    """
414    msgs = {
415        'badregex': ('bademail', 'Must be a valid email address'),
416    }
443    msgs = {
444        'badipaddress': 'Must be a valid IP address',
445        'badnetblock': 'Must be a valid IP network block',
validation.py https://bitbucket.org/lento/tw2core | Python | 535 lines
393
394class RegexValidator(Validator):
395    """
411
412class EmailValidator(RegexValidator):
413    """
413    """
414    Confirm the value is a valid email address.
415    """
416    msgs = {
417        'badregex': ('bademail', 'Must be a valid email address'),
418    }
445    msgs = {
446        'badipaddress': 'Must be a valid IP address',
447        'badnetblock': 'Must be a valid IP network block',
validation.py https://bitbucket.org/rodfersou/tw2core | Python | 500 lines
407
408class RegexValidator(Validator):
409    """
425
426class EmailValidator(RegexValidator):
427    """
427    """
428    Confirm the value is a valid email address.
429    """
430    msgs = {
431        'badregex': ('bademail', 'Must be a valid email address'),
432    }
459    msgs = {
460        'badipaddress': 'Must be a valid IP address',
461        'badnetblock': 'Must be a valid IP network block',
validation.py https://github.com/lukasgraf/tw2.core.git | Python | 605 lines
452
453class RegexValidator(Validator):
454    """
471
472class EmailValidator(RegexValidator):
473    """
473    """
474    Confirm the value is a valid email address.
475    """
476    msgs = {
477        'badregex': ('bademail', _('Must be a valid email address')),
478    }
505    msgs = {
506        'badipaddress': _('Must be a valid IP address'),
507        'badnetblock': _('Must be a valid IP network block'),
validation.py https://bitbucket.org/percious/tw2core-percious | Python | 446 lines
368
369class RegexValidator(Validator):
370    """
386
387class EmailValidator(RegexValidator):
388    """
388    """
389    Confirm the value is a valid email address.
390    """
391    msgs = {
392        'badregex': ('bademail', 'Must be a valid email address'),
393    }
411    msgs = {
412        'badipaddress': 'Must be a valid IP address',
413    }
validation.py https://bitbucket.org/toscawidgets/tw2.core | Python | 457 lines
379
380class RegexValidator(Validator):
381    """
397
398class EmailValidator(RegexValidator):
399    """
399    """
400    Confirm the value is a valid email address.
401    """
402    msgs = {
403        'badregex': ('bademail', 'Must be a valid email address'),
404    }
422    msgs = {
423        'badipaddress': 'Must be a valid IP address',
424    }
validation.py https://bitbucket.org/sanjiv/tw2.core | Python | 455 lines
377
378class RegexValidator(Validator):
379    """
395
396class EmailValidator(RegexValidator):
397    """
397    """
398    Confirm the value is a valid email address.
399    """
400    msgs = {
401        'badregex': ('bademail', 'Must be a valid email address'),
402    }
420    msgs = {
421        'badipaddress': 'Must be a valid IP address',
422    }
validation.py https://bitbucket.org/pedersen/tw2.core | Python | 452 lines
374
375class RegexValidator(Validator):
376    """
392
393class EmailValidator(RegexValidator):
394    """
394    """
395    Confirm the value is a valid email address.
396    """
397    msgs = {
398        'badregex': ('bademail', 'Must be a valid email address'),
399    }
417    msgs = {
418        'badipaddress': 'Must be a valid IP address',
419    }
example_regex.txt https://github.com/austinsprawls/js-jquery-missing-manual.git | text | 25 lines
1US Zip Code REGEX
2var ZipCode = /\d{5}(-\d{4})?/;
5
6US Phone Number REGEX
7var phoneNum = /\(?(\d{3})\)?[ -.](\d{3})[ -.](\d{4})/;
10
11Email Address REGEX
12var email = /[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,4}/;
12var email = /[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,4}/;
13if you want to make sure the string ONLY contains an email address use the ^ and $ to match the beginning and ending of the string like this:
14var email = /^[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,4}$/;
15
16Date REGEX
17var date = /([01]?\d)[-\/ .]([0123]?\d)[-\/ .](\d{4})/;
20
21URL REGEX
22var URL = /((\bhttps?:\/\/)|(\bwww\.))\S*/;
permissions.md git://github.com/gitlabhq/gitlabhq.git | Markdown | 459 lines
156| Delete issues                                     |         |            |             |          | ✓      |
157| Disable notification emails                       |         |            |             |          | ✓      |
158| Force push to protected branches (*4*)            |         |            |             |          |        |
316have the option to narrow it down by defining a set of internal users.
317The **Internal users** field allows specifying an email address regex pattern to
318identify default internal users. New users whose email address matches the regex
320
321The regex pattern format is Ruby, but it needs to be convertible to JavaScript,
322and the ignore case flag will be set (`/regex pattern/i`). Here are some examples:
323
324- Use `\.internal@domain\.com$` to mark email addresses ending with
325  `.internal@domain.com` as internal.
325  `.internal@domain.com` as internal.
326- Use `^(?:(?!\.ext@domain\.com).)*$\r?` to mark users with email addresses
327  NOT including `.ext@domain.com` as internal.
paramvalidator.rb https://bitbucket.org/ged/strelka | Ruby | 1,007 lines
26#	validator.add( :feedback, :printable, "Customer Feedback" )
27#	validator.override( :email, :printable, "Your Email Address" )
28#
40#		tmpl.lastname  = validator[:name][:lastname]
41#		tmpl.email	   = validator[:email]
42#		tmpl.feedback  = validator[:feedback]
338		#
339		# RFC822 Email Address Regex
340		# --------------------------
349		#
350		RFC822_EMAIL_ADDRESS = begin
351			qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]'
424			:word		  => /^(?<word>[[:word:]]+)$/,
425			:email		  => /^(?<email>#{RFC822_EMAIL_ADDRESS})$/,
426			:hostname	  => /^(?<hostname>#{RFC1738_HOSTNAME})$/,
Changelog.txt git://github.com/JeremySkinner/FluentValidation.git | Plain Text | 617 lines
3Removed support for unsupported .NET Core versions (2.2 and 3.0). LTS versions are supported (2.1 and 3.1)
4Default email validation mode now uses the same logic as ASP.NET Core. Previous regex behaviour is opt-in.
5TestHelper advanced mode now has more features (see https://docs.fluentvalidation.net/en/latest/testing.html#advanced-test-extensions)
3655.3 - 27 May 2014
366* Fix issue https://fluentvalidation.codeplex.com/workitem/7183 (email address validation)
367
554* French resource translations.
555* EmailValidator now uses regex from http://hexillion.com/samples/#Regex
556
5771.1 beta 1 - May 26 2009
578* Validators can now be chained together: RuleFor(person => person.Address).SetValidator(new AddressValidator());
579* Marked the 'And' property as obsolete. It is now possible to chain validators without it. This will be removed in the next release.
592* Fixed issue with AddToModelState - SetModelValue should be called to ensure ASP.NET MVC's built-in HTML Helpers do not throw NullReferenceExceptions.
593* Fixed issue with email address regex - plus character should be allowed.
594* Fixed issue in Silverlight project - the Resource files were in the wrong namespace.
Changelog.txt https://github.com/nevaenuf/FluentValidation.git | text | 256 lines
35.3 - 27/05/2014
4* Fix issue https://fluentvalidation.codeplex.com/workitem/7183 (email address validation)
5
75* Implement client-side support for Equal with cross-property validation.
76* Implement client-side support for email validator.
77* Added credit card validator (plus client side support)
192* French resource translations.
193* EmailValidator now uses regex from http://hexillion.com/samples/#Regex
194
2151.1 beta 1 - May 26 2009
216* Validators can now be chained together: RuleFor(person => person.Address).SetValidator(new AddressValidator());
217* Marked the 'And' property as obsolete. It is now possible to chain validators without it. This will be removed in the next release.
230* Fixed issue with AddToModelState - SetModelValue should be called to ensure ASP.NET MVC's built-in HTML Helpers do not throw NullReferenceExceptions.
231* Fixed issue with email address regex - plus character should be allowed.
232* Fixed issue in Silverlight project - the Resource files were in the wrong namespace.
Profiles.json https://github.com/AndrewRayCode/configs.git | JSON | 5,052 lines
541    {
542      "notes" : "email address",
543      "regex" : "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b",
3444    {
3445      "notes" : "email address",
3446      "regex" : "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b",
3861    {
3862      "notes" : "email address",
3863      "regex" : "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b",
4292    {
4293      "notes" : "email address",
4294      "regex" : "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b",
4724    {
4725      "notes" : "email address",
4726      "regex" : "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b",
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21