Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/m/a/max-3.6/max/validators.py   max(Download)
import re
from max.regex import RE_VALID_HASHTAG
from max.regex import RE_VALID_TWITTER_USERNAME
from max.regex import RE_VALID_IOS_TOKEN
 
        See max.regex for more info on the regex
    """
    match = re.match(RE_VALID_TWITTER_USERNAME, text)
    success = match is not None
    return (success, message)

src/m/a/max-3.6/max/formatters.py   max(Download)
# -*- coding: utf-8 -*-
from max.regex import RE_VALID_HASHTAG
from max.regex import RE_VALID_TWITTER_USERNAME
import re
import bleach

src/m/a/max-3.6/max/tests/test_regex.py   max(Download)
        See max.regex for more info on what the regex is supposed to match
        """
        from max.regex import RE_VALID_TWITTER_USERNAME
 
        #valid
        See max.regex for more info on what the regex is supposed to capture
        """
        from max.regex import RE_VALID_TWITTER_USERNAME
        self.assertEqual(re.sub(RE_VALID_TWITTER_USERNAME, r'\1', '@johndoe'), 'johndoe')
        self.assertEqual(re.sub(RE_VALID_TWITTER_USERNAME, r'\1', 'johndoe'), 'johndoe')