100+ results results for 're.compile repo:EricSchles/hackerunion.org' (179 ms)
18 if i.find('*') != -1: 19 r = re.compile(re.escape(i).replace('\\*', '.*'), re.IGNORECASE) 20 for f in os.listdir(d):dConstants.py http://damnvid.googlecode.com/svn/trunk/ | Python | 23 lines
8# Begin regex constants 9REGEX_PATH_MULTI_SEPARATOR_CHECK = re.compile('/+') 10REGEX_FFMPEG_DURATION_EXTRACT = re.compile('^\\s*Duration:\\s*(\\d+):(\\d\\d):([.\\d]+)', re.IGNORECASE) 10REGEX_FFMPEG_DURATION_EXTRACT = re.compile('^\\s*Duration:\\s*(\\d+):(\\d\\d):([.\\d]+)', re.IGNORECASE) 11REGEX_FFMPEG_TIME_EXTRACT = re.compile('time=([.\\d]+)', re.IGNORECASE) 12REGEX_FILENAME_SANE_CHARACTERS = re.compile('[-+/a-z _=~.,\\d]', re.IGNORECASE) 12REGEX_FILENAME_SANE_CHARACTERS = re.compile('[-+/a-z _=~.,\\d]', re.IGNORECASE) 13REGEX_SHELLARG_SAFE = re.compile(r'^[-+/\w_=~.,]+$', re.IGNORECASE) 14REGEX_HTTP_GENERIC = re.compile('^https?://(?:[-_\w]+\.)+\w{2,4}(?:[/?][-_+&^%$=`~?.,/:;{}#\w]*)?$', re.IGNORECASE) 14REGEX_HTTP_GENERIC = re.compile('^https?://(?:[-_\w]+\.)+\w{2,4}(?:[/?][-_+&^%$=`~?.,/:;{}#\w]*)?$', re.IGNORECASE) 15REGEX_HTTP_GENERIC_LOOSE = re.compile('https?://(?:[-_\w]+\.)+\w{2,4}(?:[/?][-_+&^%$=`~?.,/:;{}\w]*)?', re.IGNORECASE) 16REGEX_HTTP_EXTRACT_FILENAME = re.compile('^.*/|[?#].*$') 16REGEX_HTTP_EXTRACT_FILENAME = re.compile('^.*/|[?#].*$') 17REGEX_HTTP_EXTRACT_DIRNAME = re.compile('^([^?#]*)/.*?$') 18REGEX_FILE_CLEANUP_FILENAME = re.compile('[\\/:?"|*<>]+')diskio.py git://github.com/ganglia/gmetric.git | Python | 58 lines
16cmdPminfo = "/usr/bin/pminfo -f " 17reDiskIO = re.compile(r'"(\w+)"] value (\d+)\n') # RegEx To Compute Value 18__init__.py https://bitbucket.org/t2y/ikazuchi/ | Python | 90 lines
22 # FIXME: span tag only, cannot match for minimal when html tag is nested 23 notrans_tag = re.compile( 24 r"<span class=[\"']?notranslate[\"']?>(.*?)</span>", re.IGNORECASE) 24 r"<span class=[\"']?notranslate[\"']?>(.*?)</span>", re.IGNORECASE) 25 whitespaces = re.compile(r"\s+", re.UNICODE) 26 zerowidth = re.compile(u"\u200b|\u200c|\u200d|\ufeff", re.UNICODE) 26 zerowidth = re.compile(u"\u200b|\u200c|\u200d|\ufeff", re.UNICODE) 27 colon = re.compile(u"\s+(:+)$", re.UNICODE) 28utils.py https://bitbucket.org/socal.piggies/pwc/ | Python | 104 lines
79 pat = r"^(.+?):(.+)$" 80 header_re = re.compile(pat) 81highlight git://github.com/rsms/workenv.git | Python | 56 lines
35 if options.ignore_case: 36 regexps.append( (i, re.compile(pattern, re.I)) ) 37 else: 37 else: 38 regexps.append( (i, re.compile(pattern)) ) 39support_test_app_sre.py https://bitbucket.org/pypy/pypy/ | Python | 33 lines
23def search(opcodes, string): 24 pattern = _sre.compile("ignore", 0, opcodes, 0, {}, None) 25 return pattern.search(string)scanrst.py http://hadesmem.googlecode.com/svn/trunk/ | Python | 0 lines
9 10include = re.compile(r' *\.\. +(include|image):: +(.*)', re.MULTILINE) 11mapp.py http://svn-cassiopeia.googlecode.com/svn/trunk/ | Python | 41 lines
19\[(.+)\](.+)\>([^:]+):?(.+)? 20"""; with_type_re = re.compile(parse_pattern_with_type, re_flag) 21#teststr = u"[reg_sheet]header>derive"template.py git://github.com/scrapy/scrapy.git | Python | 34 lines
20 21CAMELCASE_INVALID_CHARS = re.compile(r'[^a-zA-Z\d]') 22txtreader.py https://code.google.com/p/robotframework/ | Python | 35 lines
20class TxtReader(TsvReader): 21 _space_splitter = re.compile(' {2,}') 22 _pipe_splitter = re.compile(' \|(?= )')test_utils.py http://entelib.googlecode.com/svn/trunk/ | Python | 48 lines
43 ''' Checks if html contains form errors. ''' 44 return re.compile('.*<form.*error.*</form>.*', re.S).match(html) 45setup.py https://bitbucket.org/zzzeek/alembic/ | Python | 58 lines
12v = open(os.path.join(os.path.dirname(__file__), 'alembic', '__init__.py')) 13VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1) 14v.close()module_actions.py http://hadesmem.googlecode.com/svn/trunk/ | Python | 0 lines
12 13spaces_re = re.compile("\ \ +") 14trailing_spaces_re = re.compile("\ +\n")FindPythonModule.cmake git://github.com/ivansafrin/Polycode.git | CMake | 25 lines
12 execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c" 13 "import re, ${module}; print(re.compile('/__init__.py.*').sub('',${module}.__file__))" 14 RESULT_VARIABLE _${module}_statusirc.py https://bitbucket.org/clarifiednetworks/idiokit/ | Python | 158 lines
50 51ERROR_REX = re.compile("^(4|5)\d\d$") 52antispam.py https://bitbucket.org/EnTeQuAk/lodgeit-main/ | Python | 49 lines
21 22_link_re = re.compile(r'''(?xi) 23 (%(url)s[^\s\'"]+)|bogus_sre_bytecode.py https://bitbucket.org/archer256/hgserve/ | Python | 48 lines
41 print code 42 pat = _sre.compile(None, 0, code) 43 for s in ss:TypeSafeSplit.fs git://github.com/bleis-tift/TypeProviderSample.git | F# | 27 lines
2 3open Microsoft.FSharp.Core.CompilerServices 4open TPUtilmdx_github.py git://github.com/aichallenge/aichallenge.git | Python | 36 lines
3 4START_FENCE = re.compile('^```(.*)') 5END_FENCE = re.compile('^```$')calib.py git://github.com/pchickey/paparazzi-linux-release.git | Python | 149 lines
16 f = open(filename, 'r') 17 pattern = re.compile("(\S+) "+ac_id+" IMU_"+sensor+"_RAW (\S+) (\S+) (\S+)") 18 list_meas = []re_test.py http://svn-cassiopeia.googlecode.com/svn/trunk/ | Python | 81 lines
8t='abcd' 9_re = re.compile(r'a(bc)d') 10_re.search(t).groups() 45.+??????(?????????????????|[\s]*)[\s]*(?P<M>.+?)[\s]+[=]{4,}.+ 46"""; main_re = re.compile(main_exp, re_flag) 47print u'<{0}>'.format(main_re.sub(r'\g<M>', whole)[0:100]) 62.+^????[^?]+?[^\d]+([\d.]+).+ 63"""; main_re = re.compile(main_exp, re_flag) 64print u'<{0}>'.format(main_re.sub(r'\g<1>', tt)[0:100])nourish.py https://code.google.com/p/nourish/ | Python | 65 lines
29 if 'canvas' in context and context['canvas']: 30 p = re.compile("\/nourish\/") 31 return p.sub('/nourish/fb/', u) 45 if 'canvas' in context and context['canvas']: 46 p = re.compile("\/nourish\/") 47 return p.sub('/nourish/fb/', u) 57 tp = parser.compile_filter(bits[1]) 58 p = re.compile("^'") 59 if p.match(bits[1]):inc_parse.py http://svn-cassiopeia.googlecode.com/svn/trunk/ | Python | 63 lines
27 re_flag = re.I|re.U|re.MULTILINE|re.DOTALL|re.VERBOSE 28 _re = re.compile(re_pattern, re_flag) 29 try:remove-host.py https://bitbucket.org/ianb/silverlining/ | Python | 54 lines
22 if '*' in location: 23 hostname_match = re.compile(fnmatch.translate(hostname), re.I) 24 if path is not None: 24 if path is not None: 25 path_match = re.compile(fnmatch.translate(path)) 26 else:myregex.py https://code.google.com/p/web2py/ | Python | 34 lines
16 17regex_tables = re.compile( 18 """^[\w]+\.define_table\(\s*[\'\"](?P<name>\w+)[\'\"]""", 22 23regex_expose = re.compile( 24 '^def\s+(?P<name>_?[a-zA-Z0-9]\w*)\( *\)\s*:', 26 27regex_longcomments = re.compile('(""".*?"""|'+"'''.*?''')",re.DOTALL) 28 28 29regex_include = re.compile( 30 '(?P<all>\{\{\s*include\s+[\'"](?P<name>[^\'"]*)[\'"]\s*\}\})') 31 32regex_extend = re.compile( 33 '^\s*(?P<all>\{\{\s*extend\s+[\'"](?P<name>[^\'"]+)[\'"]\s*\}\})', re.MULTILINE)__init__.py git://github.com/toastdriven/django-haystack.git | Python | 86 lines
10 11IDENTIFIER_REGEX = re.compile("^[\w\d_]+\.[\w\d_]+\.[\w\d-]+$") 12views.py https://code.google.com/p/nourish/ | Python | 25 lines
20 21rewriter_re = re.compile("\/nourish\/") 22imc2_ansi.py https://code.google.com/p/evennia/ | Python | 61 lines
47 # prepare regex matching 48 self.ansi_sub = [(re.compile(sub[0], re.DOTALL), sub[1]) 49 for sub in self.ansi_map] 50 # prepare matching ansi codes overall 51 self.ansi_regex = re.compile("\033\[[0-9;]+m") 52datarow.py https://code.google.com/p/robotframework/ | Python | 108 lines
19 _row_continuation_marker = '...' 20 _whitespace_regexp = re.compile('\s+') 21 _ye_olde_metadata_prefix = 'meta:'member.go git://github.com/ha/doozerd.git | Go | 0 lines
47func removeInfo(p consensus.Proposer, g store.Getter, name string) { 48 glob, err := store.CompileGlob("/ctl/node/" + name + "/**") 49 if err != nil {setup.py https://bitbucket.org/olt/mapproxy/ | Python | 78 lines
18 changes = ['Changes\n-------\n'] 19 version_line_re = re.compile('^\d\.\d+\.\d+\S*\s20\d\d-\d\d-\d\d') 20 for line in open('CHANGES.txt'):time_sync.py git://github.com/sirikata/sirikata.git | Python | 107 lines
34offset_regex_str = 'offset ' + float_regex_str 35float_re = re.compile(float_regex_str) 36offset_re = re.compile(offset_regex_str)count-downloads.py http://semanticvectors.googlecode.com/svn/trunk/ | Python | 33 lines
13 14td_match = re.compile("<td class=\"vt col_4\"") 15sv_match = re.compile("detail\?name=(semanticvectors[^\&]*)\&") 15sv_match = re.compile("detail\?name=(semanticvectors[^\&]*)\&") 16count_match = re.compile("^\s*(\d+)\s*$") 17yuidoc_highlight.py http://jplex.googlecode.com/svn/trunk/ | Python | 129 lines
20 entitydefs_inverted[v] = k 21_badchars_regex = re.compile('|'.join(entitydefs.values())) 22_been_fixed_regex = re.compile('&\w+;|&#[0-9]+;')setup.py git://github.com/aichallenge/aichallenge.git | Python | 47 lines
9 competition="Ants" 10 seewikiregex=re.compile(r'(<!--<MarkdownReplacement with="([^\n>]*.md)">-->.*?<!--</MarkdownReplacement>-->)',re.DOTALL) 11 markdownlocation = "aichallenge.wiki/"feedzilla_analyze.py https://bitbucket.org/lorien/feedzilla/ | Python | 61 lines
14 15REX_FEED_URL = re.compile(r'feed|rss|atom', re.I) 16permalink.py http://ihere-blog.googlecode.com/svn/trunk/ihere_ap_1.0beta6/ | Python | 82 lines
73def removepunctuation(str): 74 punctuation = re.compile(r'[.?!,":;]') 75 str = punctuation.sub("", str)getdocstrings.py https://bitbucket.org/pypy/pypy/ | Python | 96 lines
24def compile_doc(): 25 return re.compile(r"__doc__\s+=\s+" + triplequotes + 26 r"(?P<docstring>.*)"+ triplequotes , 30def compile_typedef(typ): 31 return re.compile(r"(?P<whitespace>\s+)" 32 + r"(?P<typeassign>" + typrpy.py https://bitbucket.org/pypy/pypy/ | Python | 50 lines
6 """Return a copy of the sre_compile module for which the _sre 7 module is a custom module that has _sre.compile == my_compile 8 and CODESIZE == rsre_char.CODESIZE. 44 else: 45 raise ValueError("did not reach _sre.compile()!") 46 if allargs:fix_bytes.py https://bitbucket.org/mirror/mercurial/ | Python | 99 lines
9 10_re = re.compile(r'[rR]?[\'\"]') 11testMail.py https://squishdot.svn.sourceforge.net/svnroot/squishdot | Python | 87 lines
15 f = open('%s.mailre' % Posting.title,'r') 16 mailre = re.compile('^%s$' % f.read()) 17 f.close()escape.py https://bitbucket.org/pygame/pygame/ | Python | 43 lines
7 8_escape_re = re.compile(eval(r'u"[&<>\"]|[\u0080-\uffff]+"')) 9kansuji2arabic.py http://svn-cassiopeia.googlecode.com/svn/trunk/ | Python | 71 lines
8 9 KANNUM_PATTERN = re.compile(u'(?P<kansuji>[????????????????????????????????,\d]+)') 10abstractxmlwriter.py https://code.google.com/p/robotframework/ | Python | 67 lines
20class AbstractXmlWriter: 21 _illegal_chars = re.compile(u'[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]') 22TestabilityCompilationParticipant.java http://testability-explorer.googlecode.com/svn/trunk/ | Java | 66 lines
26import org.eclipse.jdt.core.IJavaProject; 27import org.eclipse.jdt.core.compiler.CompilationParticipant; 28referrer.py https://bitbucket.org/olt/mapproxy/ | Python | 106 lines
33 """ 34 blocked = re.compile('^[xX*]+$') 35 def __call__(self, referrer, _environ): 68 self.regex_str = regex 69 self.regex = re.compile(regex) 70 def __call__(self, referrer, _environ):escaping.py https://code.google.com/p/robotframework/ | Python | 117 lines
36class Unescaper(object): 37 _escaped = re.compile(r'(\\+)([^\\]*)') 38 106class EscapeFinder(object): 107 _escaped = re.compile(r'(\\+)([^\\]*)') 108__init__.py https://bitbucket.org/dholth/cryptacular/ | Python | 75 lines
39 40 _bcrypt_syntax = re.compile('\$2a\$[0-9]{2}\$[./A-Za-z0-9]{53}') 41CommentHelper.java https://svn.apache.org/repos/asf/incubator/isis/ | Java | 0 lines
37import org.eclipse.jdt.core.JavaModelException; 38import org.eclipse.jdt.core.compiler.ITerminalSymbols; 39DSAclean.py https://bitbucket.org/dwilliamson/clreflect/ | Python | 33 lines
22while buffer != '': 23 if re.compile("label(\s*)=(\s*)\"\s%tmp(.\w*)*(\s*)\"").search(buffer): 24 #skip next line, write neither this line nor the nextwikipedia.py https://code.google.com/p/jsonbot/ | Python | 105 lines
22 23wikire = re.compile('start content(.*?)end content', re.M) 24 80 81resultre1 = re.compile("(<li>.*?</li>)") 82resultre2 = re.compile("(<h2>.*?</h2>)")backup.py https://bitbucket.org/ianb/silverlining/ | Python | 51 lines
7 8_backup_path_re = re.compile(r'backup="(.*?)"') 9_scheme_re = re.compile(r'^[a-z]+:') 9_scheme_re = re.compile(r'^[a-z]+:') 10_archive_path_re = re.compile(r'archive="(.*?)"') 11t3_index_books.py http://flaxcode.googlecode.com/svn/trunk/ | Python | 39 lines
11# create a regexp to parse book data 12bookfield_re = re.compile('(\w+):\s+(.+)') 13newliner-cmd.py git://github.com/apenwarr/bup.git | Python | 48 lines
14 15r = re.compile(r'([\r\n])') 16lastlen = 0testindentation.py git://github.com/einars/js-beautify.git | Python | 48 lines
43 cls.options = options 44 cls.wrapregex = re.compile('^(.+)$', re.MULTILINE) 45test_getdocstrings.py https://bitbucket.org/pypy/pypy/ | Python | 57 lines
41 42 typedef = re.compile(r"(?P<whitespace>\s*)" 43 + r"(?P<typeassign>" + matchlogger.py git://github.com/dcramer/django-devserver.git | Python | 78 lines
10 11_bash_colors = re.compile(r'\x1b\[[^m]*m') 12dict.py git://github.com/offby1/anagrams.git | Python | 89 lines
12 13has_a_vowel_re = re.compile (r'[aeiouy]') 14long_enough_re = re.compile (r'^i$|^a$|^..') 14long_enough_re = re.compile (r'^i$|^a$|^..') 15non_letter_re = re.compile (r'[^a-z]') 16__init__.py git://github.com/gmate/gmate.git | Python | 151 lines
84 85 r = re.compile('^ +', re.MULTILINE) 86 matches = r.findall(text) 114 tab_size = self.plugin.tab_size() 115 r = re.compile('^(?:' + (' ' * tab_size) + ')+', re.MULTILINE) 116 def replacer(match):util.py http://django-hotclub.googlecode.com/svn/trunk/ | Python | 114 lines
18# Adapted from http://delete.me.uk/2005/03/iso8601.html 19ISO8601_REGEX = re.compile(r"(?P<year>[0-9]{4})(-(?P<month>[0-9]{1,2})(-(?P<day>[0-9]{1,2})" 20 r"((?P<separator>.)(?P<hour>[0-9]{2}):(?P<minute>[0-9]{2})(:(?P<second>[0-9]{2})(\.(?P<fraction>[0-9]+))?)?" 22) 23TIMEZONE_REGEX = re.compile("(?P<prefix>[+-])(?P<hours>[0-9]{2}).(?P<minutes>[0-9]{2})") 24bump_version.py http://hadesmem.googlecode.com/svn/trunk/ | Python | 0 lines
25 #~ print " '%s' ==> '%s'" % (replacements[0],replacements[1]) 26 text = re.compile(replacements[0],re.M).subn(replacements[1],text)[0] 27 replacements = replacements[2:]util.py https://bitbucket.org/lorien/django-account/ | Python | 114 lines
49 context = Context(kwargs) 50 re_empty_lines = re.compile(r'^(\r?\n)+|(\r?\n)+$') 51 data = template.render(context)sanitize-ejabberd-apache-logs.py https://bitbucket.org/clarifiednetworks/vsroom/ | Python | 88 lines
2 3ej_time = re.compile('(\d{4}-\d\d-\d\d \d\d:\d\d:\d\d) ===') 4 5matchers = list() 6matchers.append(re.compile('(Accepted authentication for \S+)')) 7matchers.append(re.compile('(Failed authentication for \S+)')) 7matchers.append(re.compile('(Failed authentication for \S+)')) 8matchers.append(re.compile('(Accepted connection {{.*?})')) 9matchers.append(re.compile('(Opened.*)')) 9matchers.append(re.compile('(Opened.*)')) 10matchers.append(re.compile('(Close session.*)')) 11matchers.append(re.compile('(\S+ MUC room.*)')) 11matchers.append(re.compile('(\S+ MUC room.*)')) 12matchers.append(re.compile('(user_available.*)')) 13matchers.append(re.compile('(unset_presence.*)'))TextParser.py http://wfuzz.googlecode.com/svn/trunk/ | Python | 140 lines
68 if not caseSens: 69 self.regexp=re.compile(pattern,re.IGNORECASE) 70 else: 70 else: 71 self.regexp=re.compile(pattern) 72 self.matches=self.regexp.findall(self.lastline)run_test.py git://github.com/jocelyn/eMIME.git | Python | 97 lines
78 regexp = "^(\d+) tests total \((\d+) executed, (\d+) failing, (\d+) unresolved\)$" 79 p = re.compile (regexp); 80genre_test.py https://bitbucket.org/guilin/gae-rproxy/ | Python | 74 lines
38import re 39re.compile(r"(\\/|/)[\w_\\/%&=-]*") 40 43 print p 44 re.compile(p) 45content_filter.py https://bitbucket.org/lorien/feedzilla/ | Python | 71 lines
30 value = u'\b%s\b' % value 31 return re.compile(ur'%s' % value, re.U | re.I) 32settings.py https://bitbucket.org/plurk/solace/ | Python | 91 lines
63 from os.path import join, dirname 64 assignment_re = re.compile(r'\s*([A-Z_][A-Z0-9_]*)\s*=') 65test_collect_plugin.py https://bitbucket.org/jpellerin/nose2/ | Python | 62 lines
28 29EXPECT_LAYOUT1 = re.compile("""\ 30test_failed \(pkg1\.test\.test_things\.SomeTests\) \.\.\. okscanner.py git://github.com/midgetspy/Sick-Beard.git | Python | 65 lines
10 11NUMBER_RE = re.compile( 12 r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?',PlayerPageParser.py http://foxtrick.googlecode.com/svn/trunk/ | Python | 70 lines
20 def getPlayerIdFromUrl(self, url): 21 pattern = re.compile("\/Club\/Players\/Player.aspx\?(.*)PlayerID=(\d+)", re.I) 22 match = re.match(pattern, url) 63 if self.in_position_span: 64 pattern = re.compile('\((.*)\)') 65 match = re.match(pattern, data)__init__.py git://github.com/divio/django-cms.git | Python | 87 lines
72 73CLEAN_KEY_PATTERN = re.compile(r'[^a-zA-Z0-9_-]') 74pretopost.py git://github.com/samueltardieu/rforth1.git | Python | 29 lines
5 6_exr = re.compile ('(\s*)(\S+)\s(.*\S)(.*)') 7matching.py https://bitbucket.org/birkenfeld/sphinx/ | Python | 81 lines
60def compile_matchers(patterns): 61 return [re.compile(_translate_pattern(pat)).match for pat in patterns] 62 68 if pat not in _pat_cache: 69 _pat_cache[pat] = re.compile(_translate_pattern(pat)) 70 return _pat_cache[pat].match(name) 77 if pat not in _pat_cache: 78 _pat_cache[pat] = re.compile(_translate_pattern(pat)) 79 match = _pat_cache[pat].matchurlutils.py git://github.com/divio/django-cms.git | Python | 111 lines
15# checks validity of absolute / relative url 16any_path_re = re.compile('^/?[a-zA-Z0-9_.-]+(/[a-zA-Z0-9_.-]+)*/?$') 17 23# ../test/ 24relative_url_regex = re.compile(r'^[^/<>]+/[^/<>].*$|^/[^/<>]*.*$', re.IGNORECASE) 25 75 """ 76 path_re = re.compile('(.*)/([^/]*$)') 77future.py https://bitbucket.org/pypy/pypy/ | Python | 104 lines
11 if version >= feature.getOptionalRelease(): 12 flag = feature.compiler_flag 13 compiler_flags |= flag 15 if version >= feature.getMandatoryRelease(): 16 self.mandatory_flags |= feature.compiler_flag 17 self.allowed_flags = compiler_flagstest_engine.py git://github.com/scrapy/scrapy.git | Python | 208 lines
37 38 itemurl_re = re.compile("item\d+.html") 39 name_re = re.compile("<h1>(.*?)</h1>", re.M) 39 name_re = re.compile("<h1>(.*?)</h1>", re.M) 40 price_re = re.compile(">Price: \$(.*?)<", re.M) 41 43 xlink = SgmlLinkExtractor() 44 itemre = re.compile(self.itemurl_re) 45 for link in xlink.extract_links(response):tar.py git://github.com/midgetspy/Sick-Beard.git | Python | 124 lines
96 } 97 _sign = re.compile("ustar *\0|[ \0]*$") 98NoseDjango-0.6.patch git://github.com/Fantomas42/django-blog-zinnia.git | Patch | 41 lines
12 import re 13 NT_ROOT = re.compile(r"^[a-zA-Z]:\\$") 14 def get_SETTINGS_PATH():validation.py http://flaxcode.googlecode.com/svn/trunk/ | Python | 204 lines
184 if pattern is not None: 185 compiled_pattern = re.compile(pattern, re.UNICODE) 186 param_rules.append((name, pattern, compiled_pattern, default, required)) 197 if pattern is not None: 198 compiled_pattern = re.compile(pattern, re.UNICODE) 199 tail_rules = tail_rules[:2] + [compiled_pattern] + tail_rules[2:]core_views.py https://bitbucket.org/plurk/solace/ | Python | 127 lines
18 19_link_re = re.compile(r'http://\S+') 20 110 111 match = re.compile(r'password was reset to <code>(.*?)</code>') \ 112 .search(response.data)install_tools.py git://github.com/aichallenge/aichallenge.git | Python | 122 lines
39 return False 40 regex = re.compile(line_pattern) 41 with open(filename, 'r') as src:generate.py http://netbeams.googlecode.com/svn/trunk/ | Python | 72 lines
34 # "using QOOXDOO_PATH from config.json" 35 qpathr=re.compile(r'"QOOXDOO_PATH"\s*:\s*"([^"]*)"\s*,') 36 conffile = open('config.json')stdoutlogsplitter.py https://code.google.com/p/robotframework/ | Python | 58 lines
24 25 _split_from_levels = re.compile('^(?:\*' 26 '(%s|HTML)' # Levelgoogle_sets.py git://github.com/neingeist/puddingbrumsel2.0.git | Python | 32 lines
22 word = r.a.contents[0] 23 if re.compile("^http://www.google.com/search\?hl=en&q=").match(r.a["href"]): 24 if filter(word): 31 print g.get_new_words("rosenkohl", "wirsing", 32 filter = lambda w: re.compile("^[a-zäöüß]+$").match(w)) 33makesfrnames.py git://github.com/samueltardieu/rforth1.git | Python | 88 lines
7 8sep = re.compile (';(----- |=====)') 9regs = re.compile (';----- Register Files') 9regs = re.compile (';----- Register Files') 10bits = re.compile (';----- ((.*) Bits|PORT.)') 11 11 12reg = re.compile ("(\S+)\s+EQU\s+H'0([0-9A-F]{3})'\s*;?\s*(.*)") 13port = re.compile ("(\S+)\s+EQU\s+(\d)\s*;?\s*(.*)")visualize_locally.py git://github.com/aichallenge/aichallenge.git | Python | 63 lines
24 25 quote_re = re.compile("'") 26 newline_re = re.compile("\s", re.MULTILINE) 26 newline_re = re.compile("\s", re.MULTILINE) 27 insert_re = re.compile(r"## REPLAY PLACEHOLDER ##") 28 path_re = re.compile(r"## PATH PLACEHOLDER ##")nagiosmailreport.py https://bitbucket.org/clarifiednetworks/vsroom/ | Python | 86 lines
45 46 nagios_converts = re.compile(nagios_converts_t) 47 if nagios_converts.search(datetime):mystocks_search.py http://xbmc-addons-chinese.googlecode.com/svn/trunk/ | Python | 53 lines
26 print sys.getdefaultencoding() 27 match=re.compile('<title>检索结果_新浪财经_新浪网</title>').findall(match0) 28 if (len(match) > 0): 28 if (len(match) > 0): 29 match=re.compile('<div>沪深股市</div>(.+?)<div class="clear"></div>').findall(match0) 30 try: 30 try: 31 match2=re.compile('target="_blank">(.+?)</a></label>').findall(match[0]) 32 if (len(match2) > 0): 42 else: 43 match=re.compile('var fullcode="(.+?)";').findall(match0) 44 if(len(match) > 0): 45 stockId = match[0] 46 match=re.compile('var stockname="(.+?)";').findall(match0) 47 stockName = match[0]completion.py git://github.com/Dieterbe/uzbl.git | Python | 180 lines
8# The reverse keyword finding re. 9FIND_SEGMENT = re.compile("(\@[\w_]+|set[\s]+[\w_]+|[\w_]+)$").findall 10views.py git://github.com/agiliq/Django-Socialauth.git | Python | 225 lines
44 45next_url_re = re.compile('^/[-\w/]+$') 46WidgetLibLocationNew.java http://transit-widget-tools.googlecode.com/svn/trunk/ | Java | 107 lines
4import org.eclipse.core.runtime.CoreException; 5import org.eclipse.wst.jsdt.core.compiler.libraries.LibraryLocation; 6import org.eclipse.wst.jsdt.core.compiler.libraries.SystemLibraryLocation;test_cprofile.py https://bitbucket.org/pypy/pypy/ | Python | 320 lines
215 pattern = pattern.replace(r'\\)', ')') 216 repattern = re.compile('^' + pattern + '$') 217 for line in lines:dll.py https://bitbucket.org/pygame/pygame/ | Python | 73 lines
59 60 match = re.compile(regexs[name], re.I).match 61 test.library_name = name # Available for debugging.fetch.py http://blogmaker.googlecode.com/svn/trunk/ | Python | 112 lines
12# This finds meta-refresh with time < 10 seconds 13refreshRe = re.compile(r'''http-equiv=['"]refresh['"]\s+content=['"]\d;\s*url=\s*([^'"\s]+)['"]''', re.IGNORECASE) 14act.py https://bitbucket.org/prometheus/htsql/ | Python | 0 lines
19escape_pattern = r"""%(?:(?P<code>[0-9A-Fa-f]{2})|..)""" 20escape_regexp = re.compile(escape_pattern) 21ElementPath.py https://bitbucket.org/birkenfeld/sphinx/ | Python | 227 lines
53 54xpath_tokenizer = re.compile( 55 "("titlecase.py https://bitbucket.org/smileychris/django-countries/ | Python | 75 lines
19 20SMALL_WORDS = re.compile(r'^(%s)$' % SMALL, re.I) 21INLINE_PERIOD = re.compile(r'[a-zA-Z][.][a-zA-Z]') 21INLINE_PERIOD = re.compile(r'[a-zA-Z][.][a-zA-Z]') 22UC_ELSEWHERE = re.compile(r'%s*?[a-zA-Z]+[A-Z]+?' % PUNCT) 23CAPFIRST = re.compile(r"^%s*?([A-Za-z])" % PUNCT) 23CAPFIRST = re.compile(r"^%s*?([A-Za-z])" % PUNCT) 24SMALL_FIRST = re.compile(r'^(%s*)(%s)\b' % (PUNCT, SMALL), re.I) 25SMALL_LAST = re.compile(r'\b(%s)%s?$' % (SMALL, PUNCT), re.I) 25SMALL_LAST = re.compile(r'\b(%s)%s?$' % (SMALL, PUNCT), re.I) 26SUBPHRASE = re.compile(r'([:.;?!][ ])(%s)' % SMALL) 27html.py https://bitbucket.org/loewis/django-3k-old/ | Python | 171 lines
17 18unencoded_ampersands_re = re.compile(r'&(?!(\w+|#\d+);)') 19word_split_re = re.compile(r'(\s+)') 19word_split_re = re.compile(r'(\s+)') 20punctuation_re = re.compile('^(?P<lead>(?:%s)*)(?P<middle>.*?)(?P<trail>(?:%s)*)$' % \ 21 ('|'.join([re.escape(x) for x in LEADING_PUNCTUATION]), 22 '|'.join([re.escape(x) for x in TRAILING_PUNCTUATION]))) 23simple_email_re = re.compile(r'^\S+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+$') 24link_target_attribute_re = re.compile(r'(<a [^>]*?)target=[^\s>]+') 24link_target_attribute_re = re.compile(r'(<a [^>]*?)target=[^\s>]+') 25html_gunk_re = re.compile(r'(?:<br clear="all">|<i><\/i>|<b><\/b>|<em><\/em>|<strong><\/strong>|<\/?smallcaps>|<\/?uppercase>)', re.IGNORECASE) 26hard_coded_bullets_re = re.compile(r'((?:<p>(?:%s).*?[a-zA-Z].*?</p>\s*)+)' % '|'.join([re.escape(x) for x in DOTS]), re.DOTALL) 26hard_coded_bullets_re = re.compile(r'((?:<p>(?:%s).*?[a-zA-Z].*?</p>\s*)+)' % '|'.join([re.escape(x) for x in DOTS]), re.DOTALL) 27trailing_empty_content_re = re.compile(r'(?:<p>(?: |\s|<br \/>)*?</p>\s*)+\Z') 28try:zbreadcrumbs.py git://github.com/Fantomas42/django-blog-zinnia.git | Python | 101 lines
57 58DATE_REGEXP = re.compile( 59 r'.*(?P<year>\d{4})/(?P<month>\d{2})?/(?P<day>\d{2})?.*')rebuild-script.py git://github.com/pypa/virtualenv.git | Python | 81 lines
23 24file_regex = re.compile( 25 br'##file (.*?)\n([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*convert\("""\n(.*?)"""\)',constants.py git://github.com/nathanborror/django-basic-apps.git | Python | 23 lines
22 23STOP_WORDS_RE = re.compile(STOP_WORDS, re.IGNORECASE)make-installer.py https://bitbucket.org/genericcontainer/goblin-camp/ | Python | 74 lines
8 9VERSION_RE = re.compile(r'^constant\s+GC_VERSION\s+:\s+(.*?)\s+;$', re.M) 10gz.py git://github.com/scrapy/scrapy.git | Python | 59 lines
45 46_is_gzipped = re.compile(br'^application/(x-)?gzip\b', re.I).search 47_is_octetstream = re.compile(br'^(application|binary)/octet-stream\b', re.I).searchtriefind.py git://github.com/biopython/biopython.git | Python | 103 lines
83 """ 84 _boundary_re = re.compile(r"[%s]+" % re.escape(DEFAULT_BOUNDARY_CHARS)) 85WidgetLibInitializer.java http://transit-widget-tools.googlecode.com/svn/trunk/ | Java | 98 lines
10import org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer; 11import org.eclipse.wst.jsdt.core.compiler.libraries.LibraryLocation; 12import org.jil.ide.Activator;namelist.py git://github.com/jbeezley/wrf-fire.git | Python | 143 lines
83 varname = r'\b[a-zA-Z][a-zA-Z0-9_]*\b' 84 valueInt = re.compile(r'[+-]?[0-9]+') 85 valueReal = re.compile(r'[+-]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)') 85 valueReal = re.compile(r'[+-]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)') 86 valueNumber = re.compile(r'\b(([\+\-]?[0-9]+)?\.)?[0-9]*([eE][-+]?[0-9]+)?') 87 valueBool = re.compile(r"(\.(true|false|t|f)\.)",re.I) 87 valueBool = re.compile(r"(\.(true|false|t|f)\.)",re.I) 88 valueTrue = re.compile(r"(\.(true|t)\.)",re.I) 89 spaces = r'[\s\t]*' 89 spaces = r'[\s\t]*' 90 quote = re.compile(r"[\s\t]*[\'\"]") 91 91 92 namelistname = re.compile(r"^[\s\t]*&(" + varname + r")[\s\t]*$") 93 paramname = re.compile(r"[\s\t]*(" + varname+r')[\s\t]*=[\s\t]*')dConfig.py http://damnvid.googlecode.com/svn/trunk/ | Python | 208 lines
174 DV.modulesstorage = {} 175 DV.generic_title_extract = re.compile('<title>\s*([^<>]+?)\s*</title>', re.IGNORECASE) 176 DV.listicons.resetList({glueHeaders.py git://github.com/philsquared/Catch.git | Python | 54 lines
5 6includesParser = re.compile( r'\s*#include\s*"(.*)"' ) 7guardParser = re.compile( r'\s*#.*_INCLUDED') 7guardParser = re.compile( r'\s*#.*_INCLUDED') 8defineParser = re.compile( r'\s*#define') 9commentParser1 = re.compile( r'^\s*/\*') 9commentParser1 = re.compile( r'^\s*/\*') 10commentParser2 = re.compile( r'^\s*\*') 11blankParser = re.compile( r'^\s*$')log2gnumeric.py https://bitbucket.org/pypy/pypy/ | Python | 205 lines
67 pattern = '<gnm:Sheet .*?<gnm:Name>%s</gnm:Name>.*?(<gnm:Cells>.*?</gnm:Cells>)' 68 regex = re.compile(pattern % sheet_name, re.DOTALL) 69 cells = gen_cells(data) 111 s = r"\[([0-9a-f]+)\] " 112 r = re.compile(s) 113 clocks = [read_clock(x) for x in r.findall(data)] 128 # 129 r = re.compile(s.replace('\n', '')) 130 yield 'clock', 'gc-before', 'gc-after' 140 # 141 r = re.compile(s.replace('\n', '')) 142 yield 'clock', None, 'task' 153 # 154 r = re.compile(s.replace('\n', '')) 155 yield 'clock', 'total', 'loops', 'bridges'utils.py https://bitbucket.org/mariocesar/django-hgwebproxy/ | Python | 51 lines
13 """ 14 agent = re.compile(r'^(mercurial).*') 15 accept = request.META.get('HTTP_ACCEPT', None)views.py git://github.com/Pylons/pyramid.git | Python | 74 lines
15# regular expression used to find WikiWords 16wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)") 17setup.py git://github.com/axiak/pyre2.git | Python | 113 lines
72def get_authors(): 73 author_re = re.compile(r'^\s*(.*?)\s+<.*?\@.*?>', re.M) 74 authors_f = open(os.path.join(BASE_DIR, "AUTHORS"))