Home
last modified time | relevance | path

Searched refs:subn (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython2/Lib/
Dre.py157 def subn(pattern, repl, string, count=0, flags=0): function
166 return _compile(pattern, flags).subn(repl, string, count)
Dcookielib.py403 non_junk, nr_junk_chars = re.subn("^[=\s;]*", "", text)
/external/skia/tools/lua/
Dfind_ngrams_on_ct33 new_contents, subd = re.subn(NGRAMS_LUA_SUBSTITUTION_STR,
/external/autotest/server/site_tests/firmware_Cr50ConsoleCommands/
Dfirmware_Cr50ConsoleCommands.py102 output, n = re.subn('%s' % regexp, '', output, 1)
/external/python/cpython2/Lib/test/
Dtest_re.py218 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/
Dregex.rst1050 | ``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/
Dre.rst683 .. 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.c2367 Py_ssize_t count, Py_ssize_t subn) in pattern_subx() argument
2540 if (subn) in pattern_subx()
/external/python/cpython2/Misc/
Dcheatsheet1704 subn(pattern,
1751 subn(repl,
1752 string[, Identical to the subn() function, using the compiled pattern.
DHISTORY6325 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
DNEWS7714 - The re.sub(), re.subn() and re.split() functions now accept a flags parameter.
/external/python/cpython2/Doc/whatsnew/
D2.7.rst1443 * The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and :func:`~re.subn`