Home | History | Annotate | Download | only in python2.7

Lines Matching refs:repl

144 def sub(pattern, repl, string, count=0, flags=0):
147 replacement repl. repl can be either a string or a callable;
151 return _compile(pattern, flags).sub(repl, string, count)
153 def subn(pattern, repl, string, count=0, flags=0):
157 string by the replacement repl. number is the number of
158 substitutions that were made. repl can be either a string or a
162 return _compile(pattern, flags).subn(repl, string, count)
253 repl, pattern = key
255 p = sre_parse.parse_template(repl, pattern)