Searched refs:subn (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython2/Lib/ |
D | re.py | 157 def subn(pattern, repl, string, count=0, flags=0): function 166 return _compile(pattern, flags).subn(repl, string, count)
|
D | cookielib.py | 403 non_junk, nr_junk_chars = re.subn("^[=\s;]*", "", text)
|
/external/skia/tools/lua/ |
D | find_ngrams_on_ct | 33 new_contents, subd = re.subn(NGRAMS_LUA_SUBSTITUTION_STR,
|
/external/autotest/server/site_tests/firmware_Cr50ConsoleCommands/ |
D | firmware_Cr50ConsoleCommands.py | 102 output, n = re.subn('%s' % regexp, '', output, 1)
|
/external/python/cpython2/Lib/test/ |
D | test_re.py | 218 self.assertEqual(re.subn("(?i)b+", "x", "bbbb BBBB"), ('x x', 2)) 219 self.assertEqual(re.subn("b+", "x", "bbbb BBBB"), ('x BBBB', 1)) 220 self.assertEqual(re.subn("b+", "x", "xyz"), ('xyz', 0)) 221 self.assertEqual(re.subn("b*", "x", "xyz"), ('xxxyxzx', 4)) 222 self.assertEqual(re.subn("b*", "x", "xyz", 2), ('xxxyz', 2)) 988 r, n = re.subn('', '', s)
|
/external/python/cpython2/Doc/howto/ |
D | regex.rst | 1050 | ``subn()`` | Does the same thing as :meth:`sub`, but | 1138 The :meth:`subn` method does the same work, but returns a 2-tuple containing the 1142 >>> p.subn('colour', 'blue socks and red shoes') 1144 >>> p.subn('colour', 'no colours at all')
|
/external/python/cpython2/Doc/library/ |
D | re.rst | 683 .. function:: subn(pattern, repl, string, count=0, flags=0) 790 .. method:: RegexObject.subn(repl, string, count=0) 792 Identical to the :func:`subn` function, using the compiled pattern.
|
/external/python/cpython2/Modules/ |
D | _sre.c | 2367 Py_ssize_t count, Py_ssize_t subn) in pattern_subx() argument 2540 if (subn) in pattern_subx()
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 1704 subn(pattern, 1751 subn(repl, 1752 string[, Identical to the subn() function, using the compiled pattern.
|
D | HISTORY | 6325 pattern.subn() methods have been rewritten in C. Also, an 11230 - re.py: fixed a bug in subn(), which caused .groups() to fail inside 13807 is now obsolete -- use the sub() or subn() functions or methods in the
|
D | NEWS | 7714 - The re.sub(), re.subn() and re.split() functions now accept a flags parameter.
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.7.rst | 1443 * The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and :func:`~re.subn`
|