PageRenderTime 9ms queryFilters 1ms Sphinxql 6ms app.CodeModel.GetByIds 106ms findMatchingLines 10ms GetByIds 116ms meta 0ms repositoryFilters 94ms languageFilters 0ms sourceFilters 0ms

16 results for 'EMAIL_ADDRESS_REGEX' (9 ms)

Source

Language

Repository

email.rb https://github.com/bountyhill/bountyhill.git | Ruby | 50 lines
19  # constant to use with email validation
20  EMAIL_ADDRESS_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i
21
21
22  validates :email,     :presence => true, :format =>  { :with => EMAIL_ADDRESS_REGEX }, :uniqueness => { :case_sensitive => false }
23  validates :password,  :length => { :minimum => MIN_PASSWORD_LENGTH }
utils.py http://app-inventor-for-android.googlecode.com/svn/trunk/ | Python | 160 lines
23
24EMAIL_ADDRESS_REGEX = ("([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@"
25                       "([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}")
78    raise ValueError('The player identifier is blank.')
79  stripped_email = re.search(EMAIL_ADDRESS_REGEX, pid)
80  if stripped_email is None:
EmailUtils.cpp https://review.tizen.org/git/ | C++ | 97 lines
30namespace {
31const char* EMAIL_ADDRESS_REGEX =
32    "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}";
33
34const std::string EMAIL_ADDRESS_REGEX_GROUP =
35    StringBuilder()
36        .append("(")
37        .append(EMAIL_ADDRESS_REGEX)
38        .append(")")
72    std::string result;
73    pcrecpp::RE re(EMAIL_ADDRESS_REGEX_GROUP);
74    if (!re.PartialMatch(address, &result)) {
Utils.java https://bitbucket.org/KusovVV/postcrossinghelper.git | Java | 159 lines
29
30    private static final Pattern EMAIL_ADDRESS_REGEX = Pattern.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$", Pattern.CASE_INSENSITIVE);
31    private static final Pattern TRACK_CODE_REGEX = Pattern.compile("^\\w{2}+\\d{9}+\\w{2}$");
76        }
77        Matcher matcher = EMAIL_ADDRESS_REGEX.matcher(email);
78        return matcher.find();
ValidationUtils.java https://bitbucket.org/Zeee/testapp.git | Java | 26 lines
7
8    private static final Pattern EMAIL_ADDRESS_REGEX
9            = Pattern.compile(
19    public static boolean isEmailValid(String email){
20        return EMAIL_ADDRESS_REGEX.matcher(email).matches();
21    }
ValidationUtils.java https://bitbucket.org/Zeee/testapp.git | Java | 26 lines
7
8    private static final Pattern EMAIL_ADDRESS_REGEX
9            = Pattern.compile(
19    public static boolean isEmailValid(String email){
20        return EMAIL_ADDRESS_REGEX.matcher(email).matches();
21    }
SmtpClientProcessor.cs https://bitbucket.org/kzoabi/lovon | C# | 357 lines
20        private static Logger logger = LogManager.GetCurrentClassLogger();
21        private static readonly Regex EMAIL_ADDRESS_REGEX = new Regex("<.+@.+>", RegexOptions.IgnoreCase);
22
290        {
291            var match = EMAIL_ADDRESS_REGEX.Match(input);
292
scrapbook.py https://github.com/gaubert/java-balivernes.git | Python | 488 lines
434    # as defined in RFC 2822 (do not support square brackets and double quotes)
435    email_address_regex = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"
436    
438    
439    m = re.match(email_address_regex,email)
440    
scrapbook.py https://github.com/gaubert/java-balivernes.git | Python | 488 lines
434    # as defined in RFC 2822 (do not support square brackets and double quotes)
435    email_address_regex = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"
436    
438    
439    m = re.match(email_address_regex,email)
440    
email.js https://github.com/dinda/socialtext.git | JavaScript | 20 lines
6//
7var EMAIL_ADDRESS_REGEX = new RegExp(
8    "^"
17function email_page_check_address(email_address) {
18    return EMAIL_ADDRESS_REGEX.test(email_address);
19}
email_page.js https://github.com/dinda/socialtext.git | JavaScript | 155 lines
32//
33var EMAIL_ADDRESS_REGEX = new RegExp(
34    "^"
43function email_page_check_address(email_address) {
44    return EMAIL_ADDRESS_REGEX.test(email_address);
45}
extra_validations.rb https://github.com/pixeltrix/extra_validations.git | Ruby | 26 lines
2
3  EMAIL_ADDRESS_REGEX = /\A(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}\Z/i
4  WEB_ADDRESS_REGEX = /\Ahttp(s)?:\/\/([-a-z0-9]+)(\.[-a-z0-9]+)*?\.([a-z]{2,5}){1}\/?([-a-zA-Z0-9?$%&+=\/]{0,255})\Z/
8  def validates_as_email_address(*args)
9    args << {:with => EMAIL_ADDRESS_REGEX}.update(args.extract_options!); validates_format_of(*args)
10  end
email.js https://github.com/rbertolette/socialtext.git | JavaScript | 20 lines
6//
7var EMAIL_ADDRESS_REGEX = new RegExp(
8    "^"
17function email_page_check_address(email_address) {
18    return EMAIL_ADDRESS_REGEX.test(email_address);
19}
email_page.js https://github.com/rbertolette/socialtext.git | JavaScript | 155 lines
32//
33var EMAIL_ADDRESS_REGEX = new RegExp(
34    "^"
43function email_page_check_address(email_address) {
44    return EMAIL_ADDRESS_REGEX.test(email_address);
45}
how-to-search-effectively-in-searchcode-server.html https://github.com/boyter/searchcode-server.git | HTML | 65 lines
49        For example searching for <strong>Arrays.asList("a1", "a2", "b1", "c2", "c1")</strong> could be turned into a
50        looser query by searching for <strong>Arrays.asList</strong> or <strong>Arrays asList</strong>. Another example would be <strong>EMAIL_ADDRESS_REGEX</strong> for
51        <strong>email address regex</strong>.
documentation.ftl https://github.com/boyter/searchcode-server.git | Freemarker Template | 1,239 lines
112                looser query by searching for <strong>Arrays.asList</strong> or <strong>Arrays asList</strong>. Another
113                example would be <strong>EMAIL_ADDRESS_REGEX</strong> for
114                <strong>email address regex</strong>.
1